Hi,
I have a book that has a pretty bad TOC, so I decided to edit it with Sigil and fix it.
Before the edit, the TOC elements looked like this:
Code:
<div class="calibre11">
<blockquote class="calibre2"><a class="calibre13" href="../Text/split_013.html#filepos40901">Chapter 2</a></blockquote>
</div>
After editing, saving and re-opening the file:
Code:
<div class="calibre11">
<h4 class="calibre2" id="heading_id_10"><a class="calibre13" href="../Text/split_013.html#filepos40901">Chapter 2</a></h4>
</div>
Notice that the id="heading_id_10" was added. What also seems to have happened is that the links in the NCX point back to these headings, instead of the links these headings point to:
Code:
<navPoint id="navPoint-10" playOrder="10">
<navLabel>
<text>Chapter 2</text>
</navLabel>
<content src="Text/split_006.html#heading_id_10" />
</navPoint>
The book has over 100 chapters, and there's no way I'm going to manually edit the NCX to fix the links. This is not the first book in which it happened to me. Why does it do that?