question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect indentation on line starting with  

See original GitHub issue

Linting a template with a segment like the following incorrectly flags the indentation:

{{#if foo}}
   bar
{{/if}}

with

block-indentation: Incorrect indentation for `   bar
` beginning at L2:C0. Expected `   bar
` to be at an indentation of 2 but was found at 3. (thedyrt-ui/templates/components/at-trip):
`{{#if foo}}
   bar
{{/if}}`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Jun 27, 2019

We can fix it now! We need to update our usage of @glimmer/compiler to use the new mode: 'codemod' and it will opt-out of converting HTML entities to their underlying thing.

See https://github.com/glimmerjs/glimmer-vm/pull/938 for background on that new parsing mode.

0reactions
reidabcommented, Feb 27, 2017

Confirmed that it’s still happening on the latest version and submitted failing tests in #184.

Read more comments on GitHub >

github_iconTop Results From Across the Web

indentation error ??? | Codecademy
I keep getting this error no matter what I do. If i leave everything blank it works great but then what have I...
Read more >
Tab space instead of multiple non-breaking spaces ("nbsp")?
It depends on which character set you want to use. There's no tab entity defined in ISO-8859-1 HTML - but there are a...
Read more >
Non-Breaking Space in HTML
In HTML coding, the non-breaking space is a character entity which can: create white space between words or web page elements; stop the...
Read more >
I can't post my question because of the "indentation"! How do I ...
For lines that you want to be flush up against the margin, you indent by 4 spaces. Like so: int foo();. Then you...
Read more >
359303 - Non-breaking spaces (nbsp) not copied as such
Reproducible: Always Steps to Reproduce: 1. Copy text containing a non-breaking space character (  or UTF-8 0xA0) to the clipboard. 2. Paste into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found