Przeglądaj źródła

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

Closes https://github.com/janl/mustache.js/issues/712
tags/v3.0.3
Phillip Johnsen GitHub 6 lat temu
rodzic
commit
4c9ef8f90b
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

@@ -632,7 +632,7 @@
if (tagIndex == 0 && indentation) { if (tagIndex == 0 && indentation) {
indentedValue = this.indentPartial(value, 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);
} }
}; };




Ładowanie…
Anuluj
Zapisz