Day 20 - How do you handle line breaks? 100 Days
-
- Selbstverwirklichung
Spent all day trying to write a script to fix the line break problem, but found you could achieve the result with one line of CSS! Good old Stack Overflow to the rescue!
white-space: pre-wrap;
https://stackoverflow.com/questions/40417527/how-do-i-preserve-line-breaks-when-getting-text-from-a-textarea/40426477
---
Send in a voice message: https://podcasters.spotify.com/pod/show/100-days-code/message
Spent all day trying to write a script to fix the line break problem, but found you could achieve the result with one line of CSS! Good old Stack Overflow to the rescue!
white-space: pre-wrap;
https://stackoverflow.com/questions/40417527/how-do-i-preserve-line-breaks-when-getting-text-from-a-textarea/40426477
---
Send in a voice message: https://podcasters.spotify.com/pod/show/100-days-code/message
15 Min.