From: Alan Date: Fri, 7 Jan 2022 06:54:17 +0000 (+0800) Subject: Roo/htmleditor/TidyWriter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=aa9faaca441d6008ee5cd75a3d250ae93bed2b95;hp=8ba4a1f9de1fd281e89367acf15104e6f72cf98b Roo/htmleditor/TidyWriter.js --- diff --git a/Roo/htmleditor/TidyWriter.js b/Roo/htmleditor/TidyWriter.js index 4dad02be8b..5541b93cc3 100644 --- a/Roo/htmleditor/TidyWriter.js +++ b/Roo/htmleditor/TidyWriter.js @@ -5,7 +5,7 @@ * * Known issues? * - not tested much with 'PRE' formated elements. - * - BR insined inline? + * - long text inside of inline can be wrapped and clened? * * */ @@ -95,8 +95,9 @@ Roo.htmleditor.TidyWriter.prototype = { } else { this.html[this.html.length] = '>'; } + var e_inline = name == 'BR' ? false : this.in_inline; - if (!this.in_inline && !this.in_pre) { + if (!e_inline && !this.in_pre) { this.addLine(); } return;