projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ff669d
)
Roo/htmleditor/TidyWriter.js
author
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 06:46:21 +0000
(14:46 +0800)
committer
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 06:46:21 +0000
(14:46 +0800)
Roo/htmleditor/TidyWriter.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/TidyWriter.js
b/Roo/htmleditor/TidyWriter.js
index
4105267
..
d09f094
100644
(file)
--- 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;
}
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;
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();
indentstr = '';
} else {
this.addLine();