View Single Post
Old 04-09-2010, 08:02 PM   #1
JaneFancher
Zealot
JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.
 
JaneFancher's Avatar
 
Posts: 123
Karma: 496
Join Date: Feb 2009
Location: Spokane, Washington
Device: Kindle2
ToC going haywire

I don't know what's going on. I don't think I'm doing anything differently than I've done in the past, but suddenly the generated ToC is going nuts.

My procedure is: Toc Generated in WordPerfect. H1, H2 tags added to the html file as per examples. In MobiCreator, I point the ToC to the div ="toc" that I have around my ToC. I also have it generate a ToC using h1 and h2 tags.

Both are exactly as expected in output.

I import the same html file into Calibre, and it doesn't seem to make any difference what I put in the ToC options page, it does the same screwed up ToC, duplicating the level one links and leaving out half of the level two.

These are examples of the html code:

<h1 style="text-align: justify; text-indent: 0.2in"><span style="font-weight: bold"><span style="font-size: 18pt"><a name="TOC1_3"></a><span style="font-family: 'Trajan Pro', serif">Section One:</span></span></span></h1>

<h2 style="text-align: justify; text-indent: 0.2in"><span style="font-weight: bold"><span style="font-size: 14pt"><a name="TOC2_1"></a>i</span></span></h2>

Does anyone have any suggestions?
JaneFancher is offline   Reply With Quote