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.

HTML whitespace is not maintained.

See original GitHub issue

Wrapping a word just before punctuation, but not wrapping the punctuation, results in bad formatting.

<p>This is a <strong>bold stance</strong>.</p>

becomes

<p>
  This is a
  <strong>bold stance</strong>
  .
</p>

Which is rendered as:

This is a bold stance .

Notice the space before the period.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
vrdecommented, Jun 23, 2020

Hi, unfortunately this makes the plugin unusable 😢 any plan to address this?

5reactions
elbertwang3commented, Jun 2, 2020

also having this issue. are there any workarounds?

Read more comments on GitHub >

github_iconTop Results From Across the Web

white-space - CSS: Cascading Style Sheets - MDN Web Docs
The white-space CSS property sets how white space inside an element is handled. ... Such preserved spaces take up space and do not...
Read more >
CSS white-space: pre not working as expected
pre Sequences of whitespace are preserved. Lines are only broken at newline characters in the source and at <br> elements.
Read more >
white-space
White space is honored exactly as it is in the HTML and the text does not wrap until a line break is present...
Read more >
Preserve Spacing of Text - HTML
Using <PRE> to preserve white space, tabs, and line breaks can come in very useful with certain types of content. You will probably...
Read more >
HTML Spaces | Spaces in HTML
HTML spacing may be added to any element. ... Whitespace are characters that are not visible. They include: ... Maintaining spaces and formatting....
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