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

Handlebars {{else}} tag not given a newline #784

Closed
tmarchant opened this issue Oct 12, 2015 · 0 comments
Closed

Handlebars {{else}} tag not given a newline #784

tmarchant opened this issue Oct 12, 2015 · 0 comments
Milestone

Comments

@tmarchant
Copy link
Contributor

Take following input. Handlebars if-else, with div tags within each condition branch:

{{#if condition}}<div></div>{{else}}<div></div>{{/if}}

This will generate the following output:

{{#if condition}}
    <div></div>{{else}}
    <div></div>
{{/if}}

I would have expected this.. {{else}} tag drops to same indentation level as the {{#if}}:

{{#if condition}}
    <div></div>
{{else}}
    <div></div>
{{/if}}
@bitwiseman bitwiseman added this to the v1.6.0 milestone Nov 12, 2015
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

2 participants