Unwanted page breaks before headings level 2
I am using Calibre’s ebook-convert to convert htm files to epub:
ebook-convert xyz.htm xyz.epub --epub-inline-toc --level1-toc //h:h1 --level2-toc //h:h2 --page-breaks-before //h:h1 --language en
The htm files have <h1>…</h1> and <h2>…</h2> chapter headings. It works perfectly well, with page breaks before <h1> headings, unless <h2> chapter titles begin with the words "Chapter" or "Book" — then I get unwanted page breaks before the level 2 headings. Is there a way to avoid this?
|