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

index e2ccd4b..f4c8c9b 100644 (file)
@@ -82,13 +82,12 @@ Roo.htmleditor.TidyWriter.prototype = {
         
         // e_inline = elements that can be inline, but still allow \n before and after?
         // only 'BR' ??? any others?
-        var e_inline = name == 'BR' ? false : this.in_inline;
         
         // ADD LINE BEFORE tage
         if (!this.in_pre) {
             if (in_inline) {
                 //code
-                if (is_br) {
+                if (name == 'BR') {
                     this.addLine();
                 } else if (this.lastElementEndsWS()) {
                     this.addLine();