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.

Single line break breaks layout

See original GitHub issue

A single line break \n somehow breaks the layout leading to very strange spaces. Expected behavior would be that it is just ignored.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

khsilycommented, Jan 24, 2019

@afilp I just manually added a method to convert single \n to double like this.

addLineBreak(content) {
        const newContent = content.replace(/\n/g, (m) => {
            return m + m;
        return newContent;

<Markdown blacklist={['list']}>

I guess It is the easiest way to handle this problem for now.

sibeliuscommented, Apr 27, 2018

this happened to me in latest version

using 2 \n solved:


Read more comments on GitHub >

github_iconTop Results From Across the Web

Better Line Breaks for Long URLs - CSS-Tricks
Why we need to care about line breaks in URLs. One reason is design. A URL that overflows its container is just plain...
Read more >
Approaches to line breaking - W3C
This article gives a high level summary of various typographic strategies for wrapping text at the end of a line, for a variety...
Read more >
The Dos and Don'ts of Adding an HTML Line Break
The first uses one paragraph element and multiple line breaks. The second uses multiple paragraph elements and no line breaks.
Read more >
line-break - CSS: Cascading Style Sheets - MDN Web Docs
The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.
Read more >
Single Line Breaks | William & Mary
In the Cascade editor hold down the “Shift” button when you click “Enter” to add a single line break instead of starting a...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found