From fa901ca5a5df783afec2a3226e09375d1a4476b3 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 22 May 2012 15:07:20 +0000 Subject: [PATCH] 5727: some PDF book reports have extra blank pages between them svn: r19620 --- src/plugins/lib/libcairodoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libcairodoc.py b/src/plugins/lib/libcairodoc.py index dd4b1229f..9d67c41b6 100644 --- a/src/plugins/lib/libcairodoc.py +++ b/src/plugins/lib/libcairodoc.py @@ -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(),