mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Input: Ignore width and height percentage measures for <img> tags. Fixes #4726 (using calibre 0.6.36, chapter head graphics take all page in viewer)
This commit is contained in:
parent
d2b721e678
commit
2a51e38d22
@ -573,6 +573,8 @@ class MobiReader(object):
|
||||
attrib[attr] = "%dpx"%int(nval)
|
||||
except:
|
||||
del attrib[attr]
|
||||
elif val.lower().endswith('%'):
|
||||
del attrib[attr]
|
||||
elif tag.tag == 'pre':
|
||||
if not tag.text:
|
||||
tag.tag = 'div'
|
||||
|
Loading…
x
Reference in New Issue
Block a user