View Single Post
Old 10-08-2011, 04:50 AM   #1
NTG
Junior Member
NTG began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: iBooks
HTML to ePub: Calibre inserts unwanted tags

While converting from HTML to ePub Calibre adds allegedly missing tags that are in fact not missing:

( 1 )
HTML: <p> aa <font ... > bb </font> cc </p>
ePub: <p> aa </p> <font ... > bb </font> <p> cc </p>

The result is that a paragraph is split mid-sentence into two paragraphs.

( 2 ) Same applies with "<span" instead of "<font"

A browser displays the original ( 1 ) and ( 2 ) flawlessly, because this is simply valid HTML code.

( 3 ) An ugly workaround is to replace <p> by <br><br> and drop </p>, but that adds huge paragraph spacing.

Is there a solution I missed, or should I report this as a bug right-away?
NTG is offline   Reply With Quote