This commit is contained in:
Kovid Goyal 2012-03-24 11:18:41 +05:30
parent a4f1f64ff8
commit 34138508bc

View File

@ -709,7 +709,7 @@ class DocumentView(QWebView): # {{{
if self.manager is not None:
self.manager.load_started()
self.loading_url = QUrl.fromLocalFile(path)
html = re.sub(r'<\s*title\s*/\s*>', '', html, flags=re.IGNORECASE)
html = re.sub(ur'<\s*title\s*/\s*>', u'', html, flags=re.IGNORECASE)
if has_svg:
self.setContent(QByteArray(html.encode(path.encoding)), mt, QUrl.fromLocalFile(path))
else: