At the moment I am running Calibre 0.6.13 (I know there's a 0.6.19 out, but I can't run it as I don't have VC90 runtime installed and it refuses my attempts to install it, and in any case I can't find anything relevant in the changelog). I am having trouble with ebook-convert.exe's --page-breaks-before parameter - it just doesn't work for me. In older versions of Calibre (I guess some 0.6.7 or something like that), I used
Code:
ebook-convert.exe book.htm book.lrf --page-breaks-before=//h2
and it would indeed insert a pagebreak before every H2 tag. In 0.6.13 the parameter seems to be ignored and the only way to get a pagebreak is through --chapter-mark=pagebreak. The problem is, of course, that not all of my H2's are chapters, and vice versa.