From: Alan Date: Fri, 7 Jan 2022 04:35:14 +0000 (+0800) Subject: Roo/htmleditor/TidyWriter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=49ef7a7c9f12a9ec0ac75ed1cab199b031fb2e32 Roo/htmleditor/TidyWriter.js --- diff --git a/Roo/htmleditor/TidyWriter.js b/Roo/htmleditor/TidyWriter.js index 3fe22f8cb5..20ed807ab9 100644 --- a/Roo/htmleditor/TidyWriter.js +++ b/Roo/htmleditor/TidyWriter.js @@ -139,8 +139,10 @@ Roo.htmleditor.TidyWriter.prototype = { end: function(name) { var value; this.popState(); - var indentstr = ''; - if (!this.in_pre && !this.in_inline) { + var indentstr = ''; + var in_inline = this.in_inline || Roo.htmleditor.TidyWriter.inline_elements.indexOf(name) > -1; + + if (!this.in_pre && !in_inline) { this.addLine(); indentstr = this.indentstr; }