Any specific reason why you are not using a <pre> tag for this?
Quote:
Originally Posted by AlanHK
One reason I used p tags first was I was going to make AZW, and according to Amazon:
https://kdp.amazon.com/en_US/help/topic/A1JPUWCSD6F59O
Kindle does not support either <pre> or <tt>
But when I tried it, actually it does.
If I use Kindlegen on the <pre> coded text, Looking at the result in Calibre's Inspect, the AZW is identical: <pre class="memo">, while the KF7 has become <tt>.
|
I would trust the Kindle Publishing Guidelines over a lot of the info on their website (which is typically outdated and/or geared more towards a Word->Kindle workflow).
I attached a test EPUB:
with this CSS:
The <p class="memo"> you put together looks fine in KF8, but absolutely falls apart in KF7:
Side Note: If I am messing with code that must keep very specific whitespace, I typically edit using Calibre's Prettify. 99.9% of the time I prefer Sigil's whitespace cleanup though.