mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 08:15:53 +01:00
MOBI Input: Fix regression causing crash when converting certain MOBI/PRC files
This commit is contained in:
parent
5ac7ff5bf2
commit
66b0b6c58f
1 changed files with 1 additions and 2 deletions
|
|
@ -294,8 +294,7 @@ def extract_content(self, output_dir=os.getcwdu()):
|
|||
root = html.fromstring(self.processed_html)
|
||||
if root.xpath('descendant::p/descendant::p'):
|
||||
from lxml.html import soupparser
|
||||
self.log.warning('Markup contains unclosed <p> tags, parsing using',
|
||||
'BeatifulSoup')
|
||||
print 'Markup contains unclosed <p> tags, parsing using BeatifulSoup'
|
||||
root = soupparser.fromstring(self.processed_html)
|
||||
self.upshift_markup(root)
|
||||
guides = root.xpath('//guide')
|
||||
|
|
|
|||
Loading…
Reference in a new issue