This commit is contained in:
Kovid Goyal 2008-03-18 17:10:13 +00:00
parent 7ddfcd5711
commit 34ddfb4135

View File

@ -653,8 +653,10 @@ class HTMLConverter(object):
End the current page, ensuring that any further content is displayed End the current page, ensuring that any further content is displayed
on a new page. on a new page.
""" """
if self.current_para.has_text():
self.current_para.append_to(self.current_block) self.current_para.append_to(self.current_block)
self.current_para = Paragraph() self.current_para = Paragraph()
if self.current_block.has_text() or self.current_block.must_append:
self.current_block.append_to(self.current_page) self.current_block.append_to(self.current_page)
self.current_block = self.book.create_text_block() self.current_block = self.book.create_text_block()
if self.current_page.has_text(): if self.current_page.has_text():