mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #2739 from otetard/bugfix/fix_space_removal
Avoid space removal when pasting text from word processor.
This commit is contained in:
commit
08c6e3e29f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
||||||
function textify(str)
|
function textify(str)
|
||||||
{
|
{
|
||||||
return sanitizeUnicode(
|
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)
|
function getAssoc(node, name)
|
||||||
|
|
Loading…
Reference in a new issue