Merge pull request #2739 from otetard/bugfix/fix_space_removal

Avoid space removal when pasting text from word processor.
This commit is contained in:
John McLear 2015-10-22 16:18:29 +01:00
commit 08c6e3e29f

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)