From 4289389a388d491e0abed11be9622628f3ebfbdc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Nov 2012 13:07:47 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/display/webview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/display/webview.py b/src/calibre/ebooks/oeb/display/webview.py index dda22a2414..2cbf7c755a 100644 --- a/src/calibre/ebooks/oeb/display/webview.py +++ b/src/calibre/ebooks/oeb/display/webview.py @@ -45,10 +45,9 @@ def load_html(path, view, codec='utf-8', mime_type=None, html = EntityDeclarationProcessor(html).processed_html has_svg = re.search(r'<[:a-zA-Z]*svg', html) is not None - self_closing_pat = re.compile(r'<([A-Za-z1-6]+)([^>]*)/\s*>') + self_closing_pat = re.compile(r'<\s*([A-Za-z1-6]+)([^>]*)/\s*>') html = self_closing_pat.sub(self_closing_sub, html) - html = re.sub(ur'<\s*title\s*/\s*>', u'', html, flags=re.IGNORECASE) loading_url = QUrl.fromLocalFile(path) pre_load_callback(loading_url)