I've been creating an endnote chapter in various books like so:
Code:
<h2 class="chapter">Endnote</h2>
<p id="en1" class="noindent">[1] endnote text...</p>
<p class="center spaceabove">(<a href="#pn1">back</a>)</p>
This has worked fine in the past. From the above html, only the word "Endnote" shows up as an entry in the TOC.
In the last two books I have done, however, extra things have been appearing in the TOC. Endnote appears as it should, but the numeral 1 from:
Code:
...[1] endnote text...
and the word "back" from:
Code:
<a href="#pn1">back</a>
now also appear as entries in the TOC.
Comparing these last 2 books to previous successful ones, I am using the exact same CSS in the header of the file and I'm marking the endnotes up in the exact same way. I haven't touched the structure detection section in Calibre.
Not sure what's going on.