mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 17:36:13 +01:00
...
This commit is contained in:
parent
0b04ea9ffd
commit
37c90afed4
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ def load_path(self, path, pos=0.0):
|
|||
mt = guess_type(path)[0]
|
||||
html = open(path, 'rb').read().decode(path.encoding, 'replace')
|
||||
html = EntityDeclarationProcessor(html).processed_html
|
||||
has_svg = re.search(r'<[:a-z]*svg', html) is not None
|
||||
has_svg = re.search(r'<[:a-zA-Z]*svg', html) is not None
|
||||
|
||||
if 'xhtml' in mt:
|
||||
html = self.self_closing_pat.sub(self.self_closing_sub, html)
|
||||
|
|
|
|||
Loading…
Reference in a new issue