projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74749c
)
Roo/htmleditor/TidyWriter.js
author
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 04:35:14 +0000
(12:35 +0800)
committer
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 04:35:14 +0000
(12:35 +0800)
Roo/htmleditor/TidyWriter.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/TidyWriter.js
b/Roo/htmleditor/TidyWriter.js
index
3fe22f8
..
20ed807
100644
(file)
--- 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;
}