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

svn: r19619
This commit is contained in:
Paul Franklin 2012-05-22 15:05:54 +00:00
parent 8ce9db4f9a
commit 3e482e9d39

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(),