mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:02:37 +02:00
...
This commit is contained in:
parent
a4f1f64ff8
commit
34138508bc
1 changed files with 1 additions and 1 deletions
|
|
@ -709,7 +709,7 @@ def load_path(self, path, pos=0.0):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue