View Single Post
Old 10-31-2019, 07:42 AM   #5
carmenchu
Groupie
carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.
 
Posts: 193
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
Workaround

Quote:
Originally Posted by DiapDealer View Post
... 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&copy...

If other viewers don't respect it, I feel strongly that they should...
carmenchu is offline   Reply With Quote