mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
oops
This commit is contained in:
parent
459e30d82f
commit
70a2ec517e
@ -105,7 +105,7 @@ def fix_fullscreen_images(container):
|
||||
child_tags.append(tag)
|
||||
if len(child_tags) > 1:
|
||||
break
|
||||
if len(child_tags) == 1 and child_tags[0] == 'div':
|
||||
if len(child_tags) == 1 and child_tags[0] in ('div', 'svg'):
|
||||
names = []
|
||||
svg = None
|
||||
for elem in body.iterdescendants('*'):
|
||||
|
@ -27,8 +27,8 @@ def fix_fullscreen_svg_images():
|
||||
child_names.push(name)
|
||||
if child_names.length > 1:
|
||||
break
|
||||
if child_names.length is 1 and child_names[0] is 'div':
|
||||
names = []
|
||||
if child_names.length is 1 and (child_names[0] is 'div' or child_names[0] is 'svg'):
|
||||
names = v'[]'
|
||||
svg = None
|
||||
for node in document.body.querySelectorAll('*'):
|
||||
if node.tagName:
|
||||
|
Loading…
x
Reference in New Issue
Block a user