mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:43:52 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -573,6 +573,8 @@ def upshift_markup(self, root):
|
|||
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…
Reference in a new issue