mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +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) {
|
||||
if(node.render) {
|
||||
@ -148,7 +148,7 @@ ElementRenderer.prototype.render = function(type) {
|
||||
}
|
||||
});
|
||||
if(isHtml) {
|
||||
output.push("</",this.widget.tag,">");
|
||||
output.push("</",this.widget.tag,">\n");
|
||||
}
|
||||
return output.join("");
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user