We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
endfilter
trimBlocks
When trimBlocks is true, and I use the indent filter inside a filter tag, like this:
{% filter indent(4, true) %} myLine1 myLine2 {% endfilter %} myLine3
then the line after the endfilter tag is also indented, and I get this output:
myLine1 myLine2 myLine3
I was expecting this output instead:
I am using nunjucks 3.2.4.
3.2.4
The text was updated successfully, but these errors were encountered:
Workarounds:
Change the template like this:
{% filter indent(4, true) %} myLine1 myLine2 {%- endfilter %} myLine3
Or set trimBlocks to false.
Sorry, something went wrong.
I confirmed that I get the expected output when using jinja instead of nunjucks.
No branches or pull requests
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
.The text was updated successfully, but these errors were encountered: