3 ms·
pre is the only correct element to use since in many emails, the exact formatting and linebreaks and such are important. For example, a code review on a mailin
by TheDong 3y ago
pre is the only correct element to use since in many emails, the exact formatting and linebreaks and such are important.
For example, a code review on a mailing list can only make sense with the linebreaks and spacing preserved.
However, as you knew to try, there is "reader mode", which is meant to heuristically ignore the exact html in order to display textual content.
Firefox's reader mode has no trouble figuring out that this is a block of text that can be reflowed.
Safari's heuristics clearly fall short on one of the more common kinds of textual blurbs you might want to reader-view-ize.
Seems like a safari problem to me.
- KronisLV 3y ago> Firefox's reader mode has no trouble figuring out that this is a block of text that can be reflowed. It was absolutely unreadable on mobile Firefox (Android), initially didn't even think to use the reader mode, which indeed did help make it readable! I think this is the first time I've ever actually needed that functionality, never quite got it beforehand. Thanks for the suggestion!
- switch007 3y agoOk you changed my view