Skip to content

Inconsistent Whitespace Trimming #16680

@the0neWhoKnocks

Description

@the0neWhoKnocks

Describe the bug

Whitespace sometimes gets trimmed within if blocks.

With this code:

{#if name}- {#if txt}({txt}) {/if}{name}{/if}

I used to get

- (25) Title Text

Now I get

- (25)Title Text

The first if prints the whitespace, but the second inner if does not.

Reproduction

Repl: Inconsistent Whitespace Trimming

Logs

System Info

Doesn't matter, whitespace being trimmed by compiler.

Severity

annoyance

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