Quote:
Originally Posted by DiapDealer
... The use of pre tags in epubs should be pretty judicious to begin with. It's too easy to create scenarios where content can overflow screen boundaries if not very careful.
|
Well, you solve that with (picked up from W3Schools):
Code:
code, pre {white-space: pre-wrap;}
I add it to
-- the stylesheet of any ebook containing code (manuals...)
-- my user stylesheet in the viewer (calibre)
and everything behaves, without preventing past©...
If other viewers don't respect it, I feel strongly that they should...