mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Fixed info macro when invoked in a missing tiddler
This commit is contained in:
parent
fd9d4973e3
commit
82a37d3ab4
@ -17,8 +17,9 @@ exports.macro = {
|
||||
},
|
||||
handler: function(type,tiddler,store,params) {
|
||||
var encoder = type === "text/html" ? utils.htmlEncode : function(x) {return x;},
|
||||
info = params.info ? params.info : "parsetree",
|
||||
parseTree = store.parseTiddler(tiddler.title);
|
||||
info = params.info ? params.info : "parsetree";
|
||||
if(tiddler) {
|
||||
var parseTree = store.parseTiddler(tiddler.title);
|
||||
switch(info) {
|
||||
case "parsetree":
|
||||
return "Parse tree: " + parseTree.toString(type);
|
||||
@ -32,6 +33,7 @@ exports.macro = {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user