[reportlab-users] Layout problem while using KeepTogether flowable

Javier Amor García javier.amor.garcia at gmail.com
Fri Aug 20 02:29:40 EDT 2010

I am using reportlab and is working fine except when I use the
KepeTogether to group the hoistory's elements of my report sections.
Then I usually, but not always, I get a Layout error.
It is worth to note that when I am not using KeepTogether the code works
flawlessly, here is the change I made to use KeepTogether (section_rows
is a list when the story elements of the section):

# return section_rows
return [KeepTogether(section_rows)]

This is the trace and the layout error I get:

line 210, in extended_build
self.multiBuild(flowables, canvasmaker=canvasmaker)
line 955, in multiBuild
self.build(tempStory, **buildKwds)
line 877, in build
line 793, in handle_flowable
raise LayoutError(ident)
reportlab.platypus.doctemplate.LayoutError: Flowable <Table at 0x0A20184C 3
rows x 1 cols> with cell(0,0) containing
"<Table at 0x0A213A0C 1 rows x 1 cols> with cell(0,0)
containing\n'<KeepTogether at 0xa213b0c> containing :<Paragraph at
0xa213'"(745.26 x 50331681) too large on page 4 in frame
'normal'(439.275590551 x 685.88976378*) of template 'Later'

This is a error on my code or I am hitting a bug?.

Thanks for you time,

More information about the reportlab-users mailing list