Quote:
Originally Posted by kovidgoyal
And was the exact commandline you used?
|
Well, I really don't get it: today it worked with the same command line:
Code:
html2lrf.exe --no-links-in-toc --chapter-attr=h2,id,. --force-page-break-before-tag=h2 --add-chapters-to-toc --lrs "demo.htm"
I still don't get it how to choose which tags should be considered headers (--chapter-regex is quite unclear ("The regular expression used to detect chapter titles. It is searched for in heading tags (h1-h6). Defaults to chapter|book|appendix" - what exactly is searched? Can I limit it to h2 only or will it always work on h[1-6]?) and --chapter-attr will only work with chapters which DO have an attribute (apparently it can't be used to detect "all <h2> no matter what attributes are used").