From 99f4004aa24bd9c1ef778358f0961101ae221f50 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Apr 2010 10:45:45 -0600 Subject: [PATCH] Fix #5378 (PRC book gets truncated when converted to EPUB) --- src/calibre/ebooks/mobi/reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/mobi/reader.py b/src/calibre/ebooks/mobi/reader.py index 15e6391812..7dcdce2a85 100644 --- a/src/calibre/ebooks/mobi/reader.py +++ b/src/calibre/ebooks/mobi/reader.py @@ -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