Merge pull request #2739 from otetard/bugfix/fix_space_removal

Avoid space removal when pasting text from word processor.
pull/2817/head
John McLear 2015-10-22 16:18:29 +01:00
commit 08c6e3e29f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
function textify(str)
{
return sanitizeUnicode(
str.replace(/\n/g, '').replace(/[\n\r ]/g, ' ').replace(/\xa0/g, ' ').replace(/\t/g, ' '));
str.replace(/(\n | \n)/g, ' ').replace(/[\n\r ]/g, ' ').replace(/\xa0/g, ' ').replace(/\t/g, ' '));
}
function getAssoc(node, name)