View Single Post
Old 04-03-2011, 08:05 AM   #11
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Quote:
Originally Posted by DMSmillie View Post
When converted to HTML, each of your chapter headings consists of something along these lines:

Code:
<h1 class="heading1style"><a name="bookmarkname">Chapter One</a></h1>
...

So... the only solution I've found to this Kindle formatting bug is to edit the HTML so that the bookmark attribute is in the heading tag, rather than being in an A tag contained within the heading tag. That way, when the Kindle follows the TOC link to the heading, it arrives at the heading element itself, and applies the correct formatting.
DMSmillie, I think changing the order of the <h?>-tag and the <a name>-tag in the code you gave above - so that you have the anker outside - may solve this problem, too. I can't say if it works on the Kindle, because I don't have one, but it worked for me on the Mobipocket Reader and on the Cybook.
Billi is offline   Reply With Quote