Quote:
Originally Posted by MikeMJ
I am trying to...
"_Toc...
the heading has been changed to:
"<i>Toc...
Can anybody tell me why some of the HTML tags are being corrupted? Also, why is the text:
"<i>
being inserted before the text of the anchor name attribute?
|
Quite obviously, the underscore preceding the "Toc" is giving calibre grief. Calibre seems to be incorrectly interpreting it as the antique (still frequently seen) use of underscores wrapping a portion of text to indicate italics. Calibre is replacing the underscore with the <i> tag. Later processing is then converting the < to < and > to >.
One fix is to sweep the document with S&R to remove the underscore (e.g. replace "_Toc" with "Toc") before conversion.