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:
Kovid Goyal 2010-01-29 13:07:22 -07:00
parent d2b721e678
commit 2a51e38d22

View File

@ -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'