mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
Changed the ordering of dependencies in WikiTextRenderer.toString
This commit is contained in:
parent
95ab295fbb
commit
66bcef51b3
@ -79,6 +79,20 @@ WikiTextRenderer.prototype.toString = function(type) {
|
|||||||
[HTML.text(node.step.toString())],
|
[HTML.text(node.step.toString())],
|
||||||
[HTML.text(node.type.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) {
|
if(node.dependencies) {
|
||||||
var dependencies = [];
|
var dependencies = [];
|
||||||
for(var d in node.dependencies) {
|
for(var d in node.dependencies) {
|
||||||
@ -98,20 +112,6 @@ WikiTextRenderer.prototype.toString = function(type) {
|
|||||||
dependencies
|
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) {
|
if(node.content) {
|
||||||
ret.push(HTML.splitLabel(
|
ret.push(HTML.splitLabel(
|
||||||
"content",
|
"content",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user