From 98228ae614dc89fbcbd60656b3a4addd92e66f42 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Mar 2016 11:49:34 +0530 Subject: [PATCH] E-book viewer: Handle ](https://bugs.launchpad.net/calibre/+bug/1550966) --- src/calibre/ebooks/oeb/display/webview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/display/webview.py b/src/calibre/ebooks/oeb/display/webview.py index 116b1c906b..1f0e8e8363 100644 --- a/src/calibre/ebooks/oeb/display/webview.py +++ b/src/calibre/ebooks/oeb/display/webview.py @@ -51,7 +51,7 @@ def load_html(path, view, codec='utf-8', mime_type=None, loading_url = QUrl.fromLocalFile(path) pre_load_callback(loading_url) - if force_as_html or re.search(r'<[a-zA-Z0-9-]+:svg', html) is None: + if force_as_html or re.search(r'<[a-zA-Z0-9-]+:svg', html) is None and '