projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9faac
)
Roo/htmleditor/TidyWriter.js
author
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 06:55:10 +0000
(14:55 +0800)
committer
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 06:55:10 +0000
(14:55 +0800)
Roo/htmleditor/TidyWriter.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/TidyWriter.js
b/Roo/htmleditor/TidyWriter.js
index
5541b93
..
239b87e
100644
(file)
--- a/
Roo/htmleditor/TidyWriter.js
+++ b/
Roo/htmleditor/TidyWriter.js
@@
-75,8
+75,12
@@
Roo.htmleditor.TidyWriter.prototype = {
var indentstr = in_inline || this.in_pre ? '' : this.indentstr;
+ // 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;
+
// if this element is inline - then don't add stuff beforehand..
- if (!
in
_inline && !this.in_pre) {
+ if (!
e
_inline && !this.in_pre) {
this.addLine();
}