mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-11 00:03:48 +00:00
Add newlines after opening and closing tags
Which also fixes the problem with the PRE tag eating it's first newline
This commit is contained in:
parent
5028da3953
commit
4289a027d4
@ -140,7 +140,7 @@ ElementRenderer.prototype.render = function(type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output.push(">");
|
output.push(">\n");
|
||||||
}
|
}
|
||||||
$tw.utils.each(this.widget.children,function(node) {
|
$tw.utils.each(this.widget.children,function(node) {
|
||||||
if(node.render) {
|
if(node.render) {
|
||||||
@ -148,7 +148,7 @@ ElementRenderer.prototype.render = function(type) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(isHtml) {
|
if(isHtml) {
|
||||||
output.push("</",this.widget.tag,">");
|
output.push("</",this.widget.tag,">\n");
|
||||||
}
|
}
|
||||||
return output.join("");
|
return output.join("");
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user