[reportlab-users] KeepTogether LayoutError

Sacha Chernezky sacha at sentai.com
Fri Sep 30 12:56:34 EDT 2005


I'm getting a LayoutError on a KeepTogether flowable at the end of a 
page. The flowable before this is the last one that can fit on the page, 
and after it's added it looks like it pushes the frame's _y value past 
the frames padding. Now when the frame tries to add the KeepTogether it 
can't, so it tries to split, putting a CondPageBreak at the front of it. 
Since we're still inside the padding, frame.add returns another 0 since 
h < 0, and the program raises the exception.
Does anyone have any ideas how to deal with this?
Am I better off overloading handle_keepWithNext and just write my own 
KeepTogether?
Or am I just not fully understanding how this all works?

Thanks!
--Sacha Chernezky


More information about the reportlab-users mailing list