On Sunday, 16 March 2025 at 17:50:44 UTC, Anonymouse wrote:
Lastly then, is there any CSS wizardry to be used to make it
word-wrap?
Yeah, I specifically disabled word wrap for code blocks because I
prefer horizontal scrolling them in a browser.
Add this either to that same media print block, or right under it
(if you want it to affect in the browser too) and you should get
OK results:
```
pre {
white-space: pre-wrap !important;
}
```
This tells it to use the pre-formatted whitespace, but allow
wrapping as needed, with important there to override any previous
commands.