mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
trim text entries upon import. Fixes: #3620
This commit is contained in:
parent
155a895604
commit
3292429ab3
1 changed files with 4 additions and 3 deletions
|
@ -406,12 +406,13 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
||||||
cc: this,
|
cc: this,
|
||||||
state: state,
|
state: state,
|
||||||
tname: tname,
|
tname: tname,
|
||||||
node:node,
|
node: node,
|
||||||
text:txt,
|
text: txt,
|
||||||
styl: null,
|
styl: null,
|
||||||
cls: null
|
cls: null
|
||||||
});
|
});
|
||||||
var txt = (typeof(txtFromHook)=='object'&&txtFromHook.length==0)?dom.nodeValue(node):txtFromHook[0];
|
var txt = (typeof(txtFromHook)=='object' && txtFromHook.length==0)
|
||||||
|
? dom.nodeValue(node).trim() : txtFromHook[0].trim();
|
||||||
|
|
||||||
var rest = '';
|
var rest = '';
|
||||||
var x = 0; // offset into original text
|
var x = 0; // offset into original text
|
||||||
|
|
Loading…
Reference in a new issue