Roo/htmleditor/TidyWriter.js
authorAlan <alan@roojs.com>
Fri, 7 Jan 2022 07:17:12 +0000 (15:17 +0800)
committerAlan <alan@roojs.com>
Fri, 7 Jan 2022 07:17:12 +0000 (15:17 +0800)
Roo/htmleditor/TidyWriter.js

index 3a46ac4..a42e6db 100644 (file)
@@ -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,'');
                 }
                 
             }