Ensure that the view macro doesn't generate a pair of nested macros

Because that will stop the refresh mechanism from working
print-window-tiddler
Jeremy Ruston 2012-06-19 16:46:50 +01:00
rodzic 1963c56fa9
commit b17a43707d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -54,12 +54,12 @@ exports.executeMacro = function() {
if(value === undefined) {
return $tw.Tree.Text("");
} else {
var link = $tw.Tree.Macro("link",{
var link = $tw.Tree.Element("span",{},[$tw.Tree.Macro("link",{
srcParams: {to: value},
content: [$tw.Tree.Text(value)],
isBlock: this.isBlock,
wiki: this.wiki
});
})]);
link.execute(parents,this.tiddlerTitle);
return link;
}