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 formatting problems #870

Closed
prettydiff opened this issue Feb 5, 2016 · 1 comment
Closed

Handlebars formatting problems #870

prettydiff opened this issue Feb 5, 2016 · 1 comment

Comments

@prettydiff
Copy link

From Glavin001/atom-beautify#781

// Expected

{{#if isValid1}}
  <p>Is valid 1</p>
{{else if isValid2}}
  <p>Is valid 2</p>
{{else}}
  <p>Is neither</p>
{{/if}}

// What happens instead

{{#if isTrue1}}
  <p>Is valid 1</p> {{else if isTrue2}}
  <p>Is valid 2</p>
{{else}}
  <p>Is neither</p>
{{/if}}

And also

// Expected

{{#each clinics as |clinic|}}
  <p>{{clinic.name}}</p>
{{else}}
  <p>Unfortunately no clinics found.</p>
{{/each}}

// What happens instead

{{#each clinics as |clinic|}}
  <p>{{clinic.name}}</p>
  {{else}}
    <p>Unfortunately no clinics found.</p>
{{/each}}
@MacKLess
Copy link
Collaborator

The first example is working correctly as of v1.8.0-rc13. The second example (each/else) is still requiring attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants