[reportlab-users] KeepTogether
Chad Nantais
reportlab-users@reportlab.com
Wed, 21 May 2003 16:24:05 -0700
I would expect that this code would keep the term's header and footer
on the same page. It does not, however.
def _insertTerms(self, terms):
""" Add terms to a story """
story = []
for key, term in terms.items():
h = Paragraph(term['ptHeader'], self.stylesheet['Heading2'])
t = Paragraph(term['ptText'], self.stylesheet['Normal'])
story.append(KeepTogether([h,t]))
return story
Any ideas?
--
Chad Nantais
Web Development Consultant
http://cnantais.rednaxel.com