[reportlab-users] Newbie: keepTogether for rml2df

Ashley Lloyd ashleylloyd at hotmail.com
Wed Jan 26 03:30:35 EST 2005

I've got a paragraph for a heading, then a paragraph for the accompanying 
text, but in some cases the page break will occur between the heading and 
the text. Is there a simple way to ensure that if this happens, then the 
heading will instead be placed onto the next page?

The rml in question currently goes pretty much like this:

theRML+="""<para style="h2">%s</para>
                  <para style="body">%s</para>""" % (theHeading, 

I'm just looking to keep it so that a page/frame break does not occur 
between the two. Any ideas?



More information about the reportlab-users mailing list