Skip to content

Conversation

@zygzagZ
Copy link

@zygzagZ zygzagZ commented Mar 25, 2025

omitLeft failed for helper ending block in chained inverse. It tried to omitLeft whitespace only for the first inverse, which is incorrect. Failing scenario:

{{#if false}}
{{else if false}}
{{else}}
	{{/if}}

TAB used to make it into the template.
WhitespaceControl failed to omit tab character, while working properly on a bit simpler scenario:

{{#if false}}
{{else}}
	{{/if}}

Here, TAB did not use to make it into the template.

This PR fixes first scenario to also omit tab.

omitLeft failed for helper ending block in chained inverse. It tried to omitLeft whitespace only for the first inverse, which is incorrect.
Failing scenario:
```
{{#if false}}
{{else if false}}
{{else}}
	{{/if}}
```
TAB used to make it into the template.
WhitespaceControl failed to omit tab character, while working properly on a bit simpler scenario:
```
{{#if false}}
{{else}}
	{{/if}}
```
Here, TAB did not use to make it into the template.
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

Successfully merging this pull request may close these issues.

1 participant