View Single Post
Old 04-24-2023, 08:11 AM   #1
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
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?
RobertDDL is offline   Reply With Quote