Quote:
Originally Posted by ewiplayer
So, I'm just posting it here. I think the tar file should be adequate to reproduce the problem. Just extract and run the create.sh. When I do it, there are no level2 items.
|
The problem is that right now TOC-generation via the --level*-toc options depends upon the markup structure within a single file. If you just 'cat' all the files in the example together (lxml can handle the resulting markup soup) and run calibre with the TOC options you provided, everything works as you had expected.
We'll see what Kovid says, but I don't see an obvious way to fix this in the current release series. Fortunately work on the next release series is in progress

, although I can't begin to guess on a release date.