First let me say that Calibre is great. I'm preparing to make a donation to support this wonderful application. I'm using it to publish an eBook on Amazon KDP and I've run into an issue with fixed-width fonts used in code examples.
Word has a built-in style for <code> "fixed width" fonts. Calibre converts this to MOBI beautifully with no issues if you use the default settings. If you try to set a base font size however, or set a font size key, the application strips multiple spaces from the <code> examples and condenses everything. It's really strange because if you don't set a base font size the multiple spaces work fine.
I'm not trying to go crazy with using spaces to control formatting. But just having 2 or 3 together works wonders in <code> style examples to improve readability.
Starting with a default small size helps prevent excessive wrapping in <code> examples. I use 8pt in Word, but Calibre seems to convert this to 12pt in the MOBI (old) output. That is why I was trying to use the base font size, but I can't do it if it strips the spaces.
Any idea what I'm doing wrong?
Word has a built-in style for <code> "fixed width" fonts. Calibre converts this to MOBI beautifully with no issues if you use the default settings. If you try to set a base font size however, or set a font size key, the application strips multiple spaces from the <code> examples and condenses everything. It's really strange because if you don't set a base font size the multiple spaces work fine.
I'm not trying to go crazy with using spaces to control formatting. But just having 2 or 3 together works wonders in <code> style examples to improve readability.
Starting with a default small size helps prevent excessive wrapping in <code> examples. I use 8pt in Word, but Calibre seems to convert this to 12pt in the MOBI (old) output. That is why I was trying to use the base font size, but I can't do it if it strips the spaces.
Any idea what I'm doing wrong?