3 ms·
pre does a lot more than respect newlines.
by jbaber 2y ago
pre does a lot more than respect newlines.
- arp242 2y ago"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>.
- bastawhiz 2y agoNo? https://searchfox.org/mozilla-central/source/layout/style/res/html.css 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"?