Fix #5378 (PRC book gets truncated when converted to EPUB)

This commit is contained in:
Kovid Goyal 2010-04-26 10:45:45 -06:00
parent 2b7e7efd41
commit 99f4004aa2

View File

@ -497,8 +497,8 @@ class MobiReader(object):
if ':' in x:
del tag.attrib[x]
if tag.tag in ('country-region', 'place', 'placetype', 'placename',
'state', 'city', 'street', 'address', 'content'):
tag.tag = 'div' if tag.tag == 'content' else 'span'
'state', 'city', 'street', 'address', 'content', 'form'):
tag.tag = 'div' if tag.tag in ('content', 'form') else 'span'
for key in tag.attrib.keys():
tag.attrib.pop(key)
continue