X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fhtmleditor%2FTidyWriter.js;h=d09f094f09474564ddf12f807574fda941f6c365;hp=41052673d3fa5bc904fa5e4b21fffa29840d693f;hb=fcc5e3bdb42b8b25bc8b5b1b847a9b1ce5b855a2;hpb=8ff669da11e253bb25ec37a5dd92515463b35d2c diff --git a/Roo/htmleditor/TidyWriter.js b/Roo/htmleditor/TidyWriter.js index 41052673d3..d09f094f09 100644 --- a/Roo/htmleditor/TidyWriter.js +++ b/Roo/htmleditor/TidyWriter.js @@ -171,9 +171,12 @@ Roo.htmleditor.TidyWriter.prototype = { this.html[this.html.length] = text; return; } - // see if last line is a line break + // see if last element was a inline element. var indentstr = this.indentstr; - if (node.previousSibling && node.previousSibling.nodeType == 1 && Roo.htmleditor.TidyWriter.inline_elements.indexOf(node.previousSibling.nodeName) > -1) { + if (node.previousSibling && + node.previousSibling.nodeType == 1 && + Roo.htmleditor.TidyWriter.inline_elements.indexOf(node.previousSibling.nodeName) > -1) + { indentstr = ''; } else { this.addLine();