Incorrect nesting of sections in FB2 output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
John Schember |
Bug Description
I am developing an input plugin for Bibles in the OSIS format. The plugin creates a TOC with 3 levels - Testaments, Books and Chapters. This works fine for EPUB output. For FB2 output I am using "--sectionize toc" on the ebook-convert command line to try to create an equivalent table of contents. However, the actual table of contents I see when viewing the the FB2 output in either Calibre or FBReader has all TOC entries except for the first Testamant and Book at level 3. i.e.:
Old Testament
Genesis
Chapter 1
......
Exodus (should be a level 2 entry, but is actually at level 3)
....
This appears to be the result of incorrect nesting of sections in the FB2 output. At the end of a book there should be two </section> tags (to terminate chapter and book) and at the end of a testament there should be three </section> tags, but in each case there is only one such tag, other than at the very end of the document body.
I am using Calibre 2.10 on Windows 7.
Changing the component for this bug.
assignee user-none
tag fb2-output
status triaged