View Single Post
Old 12-12-2008, 09:11 AM   #1
poloman
Enthusiast
poloman began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2008
Device: PRS505, Kindle 3G
TOC error when converting HTML

Hi,

I've serached everywhere and cant find a solution.

When I try and convert an html file with chapter detection (Detect chapter at tag regEx: h\d,class,chapter ) it works fine, but when I tell it to "Add chapters to table of contents (and have "Chapter" or "h\d,class,chapter" in the box marked Regular Expression), Calibre comes up with a big custom error box.

Part of the error message : "Job: **Convert book: Reference** **tuple**: ('LrsError', u'TOC text block must be already appended to a page') **Traceback**:"

I'm converting html that I have extracted from an app I use (trying to make a very useful reference library), so can alter the structure if needed. Here is what it's using at the moment:

< h 1 c l a s s = " c h a p t e r " > C h a p t e r 1 - T e s t 1 < / h 1 >

Am i doing something wrong?

As I say, if i leave the TOC box unchecked, it works fine and I get a nice lrf all split up into chapters.
poloman is offline   Reply With Quote