From: Alan Date: Fri, 7 Jan 2022 07:17:12 +0000 (+0800) Subject: Roo/htmleditor/TidyWriter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1a01289e010716addd494e82628fda8ec4e9f8de Roo/htmleditor/TidyWriter.js --- diff --git a/Roo/htmleditor/TidyWriter.js b/Roo/htmleditor/TidyWriter.js index 3a46ac4571..a42e6db1a1 100644 --- a/Roo/htmleditor/TidyWriter.js +++ b/Roo/htmleditor/TidyWriter.js @@ -225,7 +225,7 @@ Roo.htmleditor.TidyWriter.prototype = { node.previousSibling.nodeType == 1 && node.previousSibling.nodeName == 'BR' ) { - text = text.replace(/^\s+/g,''); + text = this.indentstr + text.replace(/^\s+/g,''); } }