View Single Post
Old 03-27-2020, 10:50 AM   #1
hymie
Enthusiast
hymie began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2011
Device: iPhone
Table of Contents depth first?

So I'm using ebook-convert to create EPUB documents from a bunch of HTML files. I've noticed that it creates the TOC "breadth first" rather than "depth first" -- that is...

My "Home" doc has links to three pages (but no links to their sections), and then each page has links to three subsections. My TOC ends up looking like this:
  • Home
  • Page 1
  • Page 2
  • Page 3
  • Page 1 Sec 1
  • Page 1 Sec 2
  • Page 1 Sec 3
  • Page 2 Sec 1
  • Page 2 Sec 2
  • Page 2 Sec 3
  • Page 3 Sec 1
  • Page 3 Sec 2
  • Page 3 Sec 3

Am I doing something wrong? Or is this just the way it is?
hymie is offline   Reply With Quote