frames.py: bug & fix in Frame.split contributed by Matt Folwell
authorrgbecker
Thu, 04 Sep 2008 13:19:45 +0000
changeset 2970 17c7629174cf
parent 2969 75353f5fafd0
child 2971 34bc83d463a9
frames.py: bug & fix in Frame.split contributed by Matt Folwell
src/reportlab/platypus/frames.py
--- a/src/reportlab/platypus/frames.py	Thu Sep 04 12:45:58 2008 +0000
+++ b/src/reportlab/platypus/frames.py	Thu Sep 04 13:19:45 2008 +0000
@@ -190,7 +190,10 @@
         y = self._y
         p = self._y1p
         s = 0
-        if not self._atTop: s = flowable.getSpaceBefore()
+        if not self._atTop:
+            s = flowable.getSpaceBefore()
+            if self._oASpace:
+                s = max(s-self._prevASpace,0)
         flowable.canv = canv    #some flowables might need this
         r = flowable.split(self._aW, y-p-s)
         del flowable.canv