3 ms·
Wrapping everything in a pre block isn't necessary. For example, look at Daring Fireball: [1][2] which is nicely rendered in a web browser, and very simple when
by throw0101a 5y ago
Wrapping everything in a pre block isn't necessary. For example, look at Daring Fireball: [1][2] which is nicely rendered in a web browser, and very simple when you do a View Source.
[1] https://daringfireball.net https://daringfireball.net
[2] https://daringfireball.net/2022/02/on_the_origin_of_the_iphone https://daringfireball.net/2022/02/on_the_origin_of_the_ipho...
- tomxor 5y agoIt's not bad, but I prefer netmeister's. > Wrapping everything in a pre block isn't necessary. I'm not saying it has to be all or nothing... but I don't see the point in not wrapping in a pre block or equivalent, having a mix is fine, i.e using an anchor or some <b> and <i> tags if you want sure, but if you are going to insert a bunch of LFs in there anyway for your column width, why not also use them for paragraphs separation, it just seems odd to me to use <p> instead and to clutter the source. You can have HTML inside pre, and you can have as much or little as you want.
- christophilus 5y agoYou can use <p> without cluttering. Put </p><p> on its own line and at a different indentation level. I saw someone do this recently, and the plain HTML read just as well as any plaintext doc I ever saw while also rendering perfectly on the phone (which this article doesn’t do thanks to its use of pre).
- tomxor 5y agowhat exactly is happening on phones with pre?