mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-06 12:10:18 -05:00
Fix #84
This commit is contained in:
parent
7329106b99
commit
4f79193b17
@ -428,7 +428,7 @@ class HTMLConverter(object):
|
||||
def parse_file(self):
|
||||
def get_valid_block(page):
|
||||
for item in page.contents:
|
||||
if isinstance(item, (TextBlock, ImageBlock, RuledLine)):
|
||||
if isinstance(item, (Canvas, TextBlock, ImageBlock, RuledLine)):
|
||||
return item
|
||||
previous = self.book.last_page()
|
||||
self.current_page = self.book.create_page()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user