Open viennem opened 10 months ago
Workarounds:
Change the template like this:
{% filter indent(4, true) %}
myLine1
myLine2
{%- endfilter %}
myLine3
Or set trimBlocks
to false.
I confirmed that I get the expected output when using jinja instead of nunjucks.
When
trimBlocks
is true, and I use the indent filter inside a filter tag, like this:then the line after the
endfilter
tag is also indented, and I get this output:I was expecting this output instead:
I am using nunjucks
3.2.4
.