5727: some PDF book reports have extra blank pages between them

svn: r19620
This commit is contained in:
Paul Franklin 2012-05-22 15:07:20 +00:00
parent ee98c3c550
commit fa901ca5a5

View File

@ -1525,7 +1525,8 @@ links (like ODF) and write PDF from that format.
def start_page(self):
# if this is not the first page we need to "close" the previous one
if self._doc.get_children():
children = self._doc.get_children()
if children and children[-1].get_type() != 'PAGEBREAK':
self._doc.add_child(GtkDocPagebreak())
new_frame_style = FrameStyle(width=self.get_usable_width(),