Commit 386eae0f authored by GoshaZotov's avatar GoshaZotov

fix bug 35957

parent 554bfc55
......@@ -2678,6 +2678,11 @@
for (var Index = 0; Index < Count; Index++) {
var _char = text.charAt(Index);
var _charCode = text.charCodeAt(Index);
if(_charCode !== 0x0A){
insertText += _char;
}
if(_charCode === 0x0A || Index === Count - 1){
var newParaRun = new ParaRun();
window['AscCommon'].addTextIntoRun(newParaRun, insertText);
......@@ -2688,8 +2693,6 @@
insertText = "";
newParagraph = new Paragraph(isIntoShape.DrawingDocument, isIntoShape);
} else{
insertText += _char;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment