Revert "allow non ascii chars in txt export"

This reverts commit be56272e66.
This commit is contained in:
John McLear 2013-02-13 18:41:04 +00:00
parent be56272e66
commit dea892213e
4 changed files with 15 additions and 562 deletions

View file

@ -23,6 +23,7 @@ var Security = require('ep_etherpad-lite/static/js/security');
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
var getPadPlainText = require('./ExportHelper').getPadPlainText
var _analyzeLine = require('./ExportHelper')._analyzeLine;
var _encodeWhitespace = require('./ExportHelper')._encodeWhitespace;
function getPadHTML(pad, revNum, callback)
{
@ -595,9 +596,3 @@ function _processSpaces(s){
return parts.join('');
}
function _encodeWhitespace(s){
return s.replace(/[^\x21-\x7E\s\t\n\r]/g, function(c){
return "&#" +c.charCodeAt(0) + ";"
});
}