mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 04:39:10 +00:00
When transcluding functions, pass an empty item list to the filter, and just return the first item
This commit is contained in:
parent
7b465888c8
commit
e3697e29bb
@ -223,7 +223,7 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
|
||||
variables[name] = param["default"];
|
||||
}
|
||||
});
|
||||
var result = this.wiki.filterTiddlers(srcVariable.value,this.makeFakeWidgetWithVariables(variables)).join("");
|
||||
var result = this.wiki.filterTiddlers(srcVariable.value,this.makeFakeWidgetWithVariables(variables),this.wiki.makeTiddlerIterator([]))[0] || "";
|
||||
parser = this.wiki.parseText(this.transcludeType,result || "",{parseAsInline: parseAsInline, configTrimWhiteSpace: srcVariable.configTrimWhiteSpace});
|
||||
} else {
|
||||
// For macros and ordinary variables, wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__"
|
||||
|
Loading…
Reference in New Issue
Block a user