reportlab/platypus/doctemplate.py
changeset 2408 1c5e79611b59
parent 2366 7dd247980b7d
child 2418 9f4ad36c767f
--- a/reportlab/platypus/doctemplate.py	Tue Nov 09 11:49:50 2004 +0000
+++ b/reportlab/platypus/doctemplate.py	Wed Nov 10 18:35:10 2004 +0000
@@ -414,9 +414,9 @@
                 pass    #store good state here
         self._hanging.append(PageBegin)
 
-    def handle_pageBreak(self):
+    def handle_pageBreak(self,slow=None):
         '''some might choose not to end all the frames'''
-        if self._pageBreakQuick:
+        if self._pageBreakQuick and not slow:
             self.handle_pageEnd()
         else:
             n = len(self._hanging)
@@ -549,7 +549,10 @@
             return
 
         if isinstance(f,PageBreak):
-            self.handle_pageBreak()
+            if isinstance(f,SlowPageBreak):
+                self.handle_pageBreak(slow=1)
+            else:
+                self.handle_pageBreak()
             self.afterFlowable(f)
         elif isinstance(f,ActionFlowable):
             f.apply(self)