2 ms·
HTML has the "pre" element that does this.
by SoftTalker 2y ago
HTML has the "pre" element that does this.
- jbaber 2y agopre 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"?