Skip to content
New issue

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

lstripBlocks config strips whitespace not just from start of line #1230

Open
jnothman opened this issue Jan 24, 2025 · 0 comments
Open

lstripBlocks config strips whitespace not just from start of line #1230

jnothman opened this issue Jan 24, 2025 · 0 comments

Comments

@jnothman
Copy link

The Jinja lstrip_blocks config is meant to strip white space preceding a tag from the start of a line.

As far as I can tell withLstripBlocks in Jinjava will currently not just strip:

hello
   {% if true %}world{% endif %}

to

hello
world

which is correct, but also strips

hello {% if true %}world{% endif %}

to

hello world

which is not according to spec.

jnothman added a commit to jnothman/jinjava that referenced this issue Jan 26, 2025
jnothman added a commit to jnothman/jinjava that referenced this issue Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant