Skip to content

Commit 4c9ef8f

Browse files
authored
Bugfix for wrong functions output in partials with indentation (#714)
This small change fixes the output of functions used in partials with indentation. Bug reports has shown that the functions output is shifted with the amount of indentation the partial has. The bug itself is best illustrated in the tests added in 621ae80. Closes #712
1 parent c4e56ef commit 4c9ef8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mustache.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@
632632
if (tagIndex == 0 && indentation) {
633633
indentedValue = this.indentPartial(value, indentation);
634634
}
635-
return this.renderTokens(this.parse(indentedValue, tags), context, partials, value);
635+
return this.renderTokens(this.parse(indentedValue, tags), context, partials, indentedValue);
636636
}
637637
};
638638

0 commit comments

Comments
 (0)