mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-02-26 01:51:39 -08: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue