[reportlab-users] flowables.KeepTogether.split() adding unnecessary FrameBreak

Patrick Maupin pmaupin at gmail.com
Sun Feb 21 02:30:53 EST 2010

This is a simplified version of a testcase that Roberto Alsina wrote, based
on a bug report from a rst2pdf user:

from reportlab.platypus import SimpleDocTemplate, Paragraph, Table
from reportlab.lib.styles import getSampleStyleSheet

ps = getSampleStyleSheet()['Normal']
heading = Paragraph('A heading at the beginning of the document', ps)
paralist = [[Paragraph('This is the content', ps)] for x in range(120)]
SimpleDocTemplate("issue277.pdf").build([heading, Table(paralist)])

In RL 2.4, this prints a blank page first, unless heading.keepWithNext is
set to False.

I looked at where this is happening, but I have zero confidence that I could
submit a patch that would not break something else, and only slightly
greater confidence that if this is not a reportlab bug, I could figure out
how to fix this code :-)

Thanks and best regards,
Patrick Maupin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100221/c9237cff/attachment.html>

More information about the reportlab-users mailing list