Skip to content

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

@jnothman

Description

@jnothman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions