mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-06 14:05:21 -04:00
MOBI Input: Strip <street> and <address> tags as ADE refuses to hadle them gracefully when converted to EPUB
This commit is contained in:
@@ -300,7 +300,7 @@ class MobiReader(object):
|
||||
mobi_version = self.book_header.mobi_version
|
||||
for tag in root.iter(etree.Element):
|
||||
if tag.tag in ('country-region', 'place', 'placetype', 'placename',
|
||||
'state', 'city'):
|
||||
'state', 'city', 'street', 'address'):
|
||||
tag.tag = 'span'
|
||||
for key in tag.attrib.keys():
|
||||
tag.attrib.pop(key)
|
||||
|
||||
Reference in New Issue
Block a user