cannot display "\n" as line break
See original GitHub issuewhen I run toastr.info("page1 \n page2")
,
I wish it can show:
page1
page2
but now is:
page1 page2
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What john-sanders-2 tried to write is:
<br>
@TimFerrell Recommend closing because this was a user issue, not an issue with the library.