View Single Post
Old 08-17-2017, 10:26 PM   #7
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Tex2002ans View Post
Any specific reason why you are not using a <pre> tag for this?
Yes, as I said, it's not supposed to be supported by Kindlegen. None of the built-in whitespace preserving tags are listed as supported. Even though it appears to be about the only way to do this reliably.
I'm not really bothered if something doesn't work in KF7, but obviously better if it does.

Anyway, it is valid to use whitespace styles on any tag.

So that pre works, while p is trashed doesn't seem to be desirable.

While Kevin pointed out that prettify is not automatic, it's easy to do it unaware of how it will affect important spacing in a section you aren't looking at or haven't reviewed yet.

So the lesson is: note if any whitespace styles are used and make them safe by applying them only to <pre> tags.

Last edited by AlanHK; 08-17-2017 at 10:53 PM.
AlanHK is offline   Reply With Quote