summaryrefslogtreecommitdiff
path: root/src/static/js/contentcollector.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-11-01 18:07:34 +0000
committerJohn McLear <john@mclear.co.uk>2014-11-01 18:07:34 +0000
commitbf380eea504662ea41aa431e30d7e30ad6a36cd3 (patch)
tree5da732d57412d9c008f7894c50e44f6be1731965 /src/static/js/contentcollector.js
parent4b488bc8af9334f4d93a540813aa8b24534942fe (diff)
downloadetherpad-lite-bf380eea504662ea41aa431e30d7e30ad6a36cd3.zip
take line breaks and treat them appropriatly instead of creating a space for them..
Diffstat (limited to 'src/static/js/contentcollector.js')
-rw-r--r--src/static/js/contentcollector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js
index ee0a1c27..5e393670 100644
--- a/src/static/js/contentcollector.js
+++ b/src/static/js/contentcollector.js
@@ -89,7 +89,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
function textify(str)
{
return sanitizeUnicode(
- str.replace(/[\n\r ]/g, ' ').replace(/\xa0/g, ' ').replace(/\t/g, ' '));
+ str.replace(/\n/g, '').replace(/[\n\r ]/g, ' ').replace(/\xa0/g, ' ').replace(/\t/g, ' '));
}
function getAssoc(node, name)