1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 08:20:46 +00:00

Changed the ordering of dependencies in WikiTextRenderer.toString

This commit is contained in:
Jeremy Ruston 2012-02-08 12:51:46 +00:00
parent 95ab295fbb
commit 66bcef51b3

View File

@ -79,6 +79,20 @@ WikiTextRenderer.prototype.toString = function(type) {
[HTML.text(node.step.toString())],
[HTML.text(node.type.toString())]
));
if(node.macro) {
ret.push(HTML.splitLabel(
"macro",
[HTML.text("macro")],
[HTML.text(node.macro)]
));
}
if(node.params) {
ret.push(HTML.splitLabel(
"params",
[HTML.text("params")],
[HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"<br>"))]
));
}
if(node.dependencies) {
var dependencies = [];
for(var d in node.dependencies) {
@ -98,20 +112,6 @@ WikiTextRenderer.prototype.toString = function(type) {
dependencies
));
}
if(node.macro) {
ret.push(HTML.splitLabel(
"macro",
[HTML.text("macro")],
[HTML.text(node.macro)]
));
}
if(node.params) {
ret.push(HTML.splitLabel(
"params",
[HTML.text("params")],
[HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"<br>"))]
));
}
if(node.content) {
ret.push(HTML.splitLabel(
"content",