From b005840838b1b9da6bb9a2e92b0be07a9d8bcdd8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 31 Dec 2011 15:36:52 +0530 Subject: [PATCH] Conversion pipeline: Fix regression in 0.8.31 that broke parsing of documents containing a self closing tag. Fixes #910325 (Mobi conversion not working on kindle iphone app) --- src/calibre/ebooks/oeb/parse_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/oeb/parse_utils.py b/src/calibre/ebooks/oeb/parse_utils.py index d262a6782c..a10d352d6d 100644 --- a/src/calibre/ebooks/oeb/parse_utils.py +++ b/src/calibre/ebooks/oeb/parse_utils.py @@ -80,6 +80,7 @@ def node_depth(node): def html5_parse(data, max_nesting_depth=100): import html5lib + data = re.sub(r'<\s*title\s*/\s*>', '<title>', data) data = html5lib.parse(data, treebuilder='lxml').getroot() # Check that the asinine HTML 5 algorithm did not result in a tree with