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.

  gets eaten out for components with long lines

See original GitHub issue

Check out this example:

<div>
  <div>&nbsp;</div>
  <div className="very long class name which will definitely exceed our 80 chars limit">
    &nbsp;
  </div>
</div>

which gets converted to

<div>
  <div>&nbsp;</div>
  <div className="very long class name which will definitely exceed our 80 chars limit" />
</div>;

&nbsp; in second <div> is eaten out by prettier, which changes behavior of code.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
karlcommented, Jun 21, 2017

I’m working on a fix for this 👍🏻

0reactions
bakkotcommented, Jun 21, 2017

Fixed by #2220; closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - &nbsp jsx not working - Stack Overflow
After seeing some of the comments, and trying it out. It has come to my attention that using html entites inside JSX works...
Read more >
Non-breaking spaces (0xA0/&nbsp;) - Bugzilla@Mozilla
In the message compose window, entering a non-breaking space (keysym 0xa0, nobreakspace) has the same effect as entering a regular space: a space...
Read more >
&nbsp and HTML Space Challenges and Tricks | Mailtrap Blog
Nbsp stands for non-breaking space, meaning that strings separated with this ... The list of available white space characters is very long.
Read more >
Spatiotemporal Organization of the E. coli Transcriptome
RNA localization in eukaryotes is a mechanism to regulate transcripts fate. Conversely, bacterial tran- scripts were not assumed to ...
Read more >
CHART of HEAVY METALS, THEIR SALTS AND OTHER ...
compounds may be components of complex objects including paper and textiles [8, 32-39], ... electrical applications; electrical transmission lines;.
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