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.

cannot display "\n" as line break

See original GitHub issue

when I run toastr.info("page1 \n page2"), I wish it can show:

page1
page2

but now is:

page1 page2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

3reactions
ErroneousFatalitycommented, Jan 16, 2017

What john-sanders-2 tried to write is: <br>

2reactions
grantiversoncommented, Jun 15, 2018

@TimFerrell Recommend closing because this was a user issue, not an issue with the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

n is not rendering the text in new line - Stack Overflow
\n isn't a newline in HTML, it's just a space. Any series of whitespace characters in HTML is treated as one space.
Read more >
When a Line Doesn't Break - CSS-Tricks
We expect a line to break when the text on that line reaches the parent box boundaries. We see this every time we...
Read more >
Handle line breaks (newlines) in Python - nkmk note
This article describes how to handle strings including line breaks (line feeds, new lines) in Python. Create a string containing line breaks.
Read more >
The Dos and Don'ts of Adding an HTML Line Break
Learn what a line break is, how to add one in HTML, and why a line break might not be working in your...
Read more >
Make line breaks work when you render text in a React or Vue ...
Sometimes you will get a string that you can't control in your React ... "Wow I am so cool \n I'm a JavaScript...
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