fix bitbucket issue #104; version-->3.4.5
authorrobin <robin@reportlab.com>
Fri, 24 Mar 2017 16:38:01 +0000
changeset 4346 081acecbf8f6
parent 4345 6d1e728dc253
child 4347 761e190b40af
fix bitbucket issue #104; version-->3.4.5
src/reportlab/__init__.py
src/reportlab/platypus/doctemplate.py
--- a/src/reportlab/__init__.py	Fri Mar 24 16:33:56 2017 +0000
+++ b/src/reportlab/__init__.py	Fri Mar 24 16:38:01 2017 +0000
@@ -1,9 +1,9 @@
 #Copyright ReportLab Europe Ltd. 2000-2017
 #see license.txt for license details
 __doc__="""The Reportlab PDF generation library."""
-Version = "3.4.4"
+Version = "3.4.5"
 __version__=Version
-__date__='20170323'
+__date__='20170324'
 
 import sys, os
 
--- a/src/reportlab/platypus/doctemplate.py	Fri Mar 24 16:33:56 2017 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Fri Mar 24 16:38:01 2017 +0000
@@ -806,9 +806,11 @@
         #the object(s) about to be processed
         self.filterFlowables(flowables)
 
-        self.handle_breakBefore(flowables)
-        self.handle_keepWithNext(flowables)
         f = flowables[0]
+        if f:
+            self.handle_breakBefore(flowables)
+            self.handle_keepWithNext(flowables)
+            f = flowables[0]
         del flowables[0]
         if f is None:
             return