projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0424c
)
Roo/htmleditor/TidyWriter.js
author
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 07:11:21 +0000
(15:11 +0800)
committer
Alan
<alan@roojs.com>
Fri, 7 Jan 2022 07:11:21 +0000
(15:11 +0800)
Roo/htmleditor/TidyWriter.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/TidyWriter.js
b/Roo/htmleditor/TidyWriter.js
index
e2ccd4b
..
f4c8c9b
100644
(file)
--- a/
Roo/htmleditor/TidyWriter.js
+++ b/
Roo/htmleditor/TidyWriter.js
@@
-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();