1
0
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:
Jeremy Ruston 2013-02-03 17:11:03 +00:00
parent 5028da3953
commit 4289a027d4
2 changed files with 233 additions and 6 deletions

View File

@ -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("");
};

235
readme.md

File diff suppressed because one or more lines are too long