[reportlab-users] prevent paragraph splitting up

Mike Hodkin mhodkin at comcast.net
Tue Jul 11 13:25:09 EDT 2006


I downloaded ReportLab yesterday and tried to subscribe to the forum on your 
site, but instead am getting these list emainlings...and I can't seem to 
loggon to the forum.  Please advise.

mhodkin at comcast.net

----- Original Message ----- 
From: "Andy Robinson" <andy at reportlab.com>
To: <mailinglists at smartology.nl>; "Support list for users of Reportlab 
software" <reportlab-users at reportlab.com>
Sent: Tuesday, July 11, 2006 11:52 AM
Subject: Re: [reportlab-users] prevent paragraph splitting up

> Remi Cool wrote:
>> Hello,
>> It's converted by a script to a sorta RML thats fed to platypus ....
>> that part works like a charm, except sections still get broken up so
>> that ie. the header is on one page and the text on the other. Is there a
>> way to let the paragraph know that it must not split so that the
>> complete section is printed on the next page?
> In your sorta-RML, make a sorta-one-cell-table.  This should "sort" it 
> because table cells cannot be split yet ;-)
> <table><tr><td>
>    <h2>This is section 1</h2>
>    <p>This is section 1 text</p>
> </td></td></table>
> The code will look a bit yucky since you initialise a table with a 2d 
> array of data.  And in this case the one-and-only cell should be a list of 
> flowables.  Sort of like this
> tbl = Table([[[p1, p2, p3, p4...]]])
> story.append(tbl)
> Good luck,
> Andy
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users

More information about the reportlab-users mailing list