Hacker News new | ask | show | jobs
by jbaber 617 days ago
pre does a lot more than respect newlines.
2 comments

"white-space:pre-line" in CSS should make it only break on hard enters. There are a bunch of values; see e.g. MDN.

Can be used on any element of course, not just <pre>.

No?

https://searchfox.org/mozilla-central/source/layout/style/re...

The Firefox default style sets a fixed width font and sets a small margin. What's "a lot more"?