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
Running via Node 10.16.0 on Windows through WSL/Ubuntu, I find that the indent macro is adding an additional trailing newline character.
Example Input:
### Block Filter
{% filter indent(4) -%}
A
B
C
{%- endfilter %}
###
{% macro letters() -%}
A
B
C
{%- endmacro -%}
### Filter with macro
{{ letters() | indent(4) }}
###
Expected Output:
### Block Filter
A
B
C
###
### Filter with macro
A
B
C
###
Actual Output:
### Block Filter
A
B
C
###
### Filter with macro
A
B
C
###
The expected output is what I see when I run the same template through Jinja in Python. I've checked that all of the line break characters are newlines and not carriage returns. Interestingly, Nunjucks is also adding an additional newline to the end of the file, I'm not sure if that's by design. I haven't noticed an extra newline when using any tags or filters besides indent.
The text was updated successfully, but these errors were encountered:
Running via Node 10.16.0 on Windows through WSL/Ubuntu, I find that the indent macro is adding an additional trailing newline character.
Example Input:
Expected Output:
Actual Output:
The expected output is what I see when I run the same template through Jinja in Python. I've checked that all of the line break characters are newlines and not carriage returns. Interestingly, Nunjucks is also adding an additional newline to the end of the file, I'm not sure if that's by design. I haven't noticed an extra newline when using any tags or filters besides indent.
The text was updated successfully, but these errors were encountered: