View Single Post
Old 04-26-2014, 05:29 AM   #1
skoll1975
Member
skoll1975 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2012
Device: Kindle
New recipe NZZ Webpaper

Hi Kovid,

please find attached the revised recipe for NZZ Webpaper (payed version).

Obviously there was a recent change in src/calibre/ebook/oeb/parse_utils that added additional syntax checks for HTML. They broke my recipe because it used incomplete HTML files that were not accepted by parse_utils after the change (shame on me ...).

So the new version delivers more correct HTML than the old one.

In detail: the function parse_html is now looking for a string "<html" - if it doesnt find one, the call of check_for_html5 fails in line 276 because of undefined value in variable pre. Maybe you want to add some additional checks to handle this condition.

Regards,

Bernd
Attached Files
File Type: zip nzz.zip (1.5 KB, 334 views)
skoll1975 is offline   Reply With Quote