You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the indent filter on a block, empty lines are also indented. This is a divergence between Jinja and Nunjucks behaviour and should be addressed.
For example, the template below
{%setcontent%}
This is some text
and this is some more text.
{%endset%}{%setcontent = content | indent(2, true) %}
{{ content }}
when rendered produces
..This is some text
..
..and this is some more text.
When using the
indent
filter on a block, empty lines are also indented. This is a divergence between Jinja and Nunjucks behaviour and should be addressed.For example, the template below
when rendered produces
instead of
Jinja issue: pallets/jinja#681
Jinja PR: pallets/jinja#685
The text was updated successfully, but these errors were encountered: