Skip to content

Extra space when an indented code block follows an {{~ if ~}} block #482

@andradf

Description

@andradf

I'm using this greatly appreciated library and seem to have run into a small issue with indentations. I am using version 5.5.2.
This template

a
{{~ if true ~}}
b
{{~ end ~}}
 {{'c'}}

renders as

a
b
  c

I believe we should expect only a single space indenting the c character. If we remove the first line, the if condition, or even declare c as a text block instead of a code block it renders correctly. For anyone else running into this, an easy workaround is to use a {{\u0020}} instead of the space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions