Quote:
Originally Posted by Tex2002ans
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.