Преглед на файлове

Bugfix for wrong functions output in partials with indentation

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 621ae80652.

Closes https://github.com/janl/mustache.js/issues/712
pull/714/head
Phillip Johnsen преди 6 години
родител
ревизия
b3dd9649be
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Целия файл

@@ -632,7 +632,7 @@
if (tagIndex == 0 && indentation) {
indentedValue = this.indentPartial(value, indentation);
}
return this.renderTokens(this.parse(indentedValue, tags), context, partials, value);
return this.renderTokens(this.parse(indentedValue, tags), context, partials, indentedValue);
}
};



Loading…
Отказ
Запис