Skip to content
Myr

Fix escaped characters in indent filter

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This unescapes after concatenating, to fix a bug introduced in Jinja 2.10 where lines concatenated contain escaped versions of non-ascii characters.

authored by Erik Johnson · committed by Erik Johnson · parent 34b1ab9 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:jinja2/filters.py+2 added
565 unmodified lines
566 if lines:567 rv += u'\n' + u'\n'.join(568 indention + line if line else line for line in lines569 )570 # Unescape any strings that were escaped due to concatenation571 rv = Markup(rv.unescape())572573 if first:574 rv = indention + rv575
617 unmodified lines