Fixed line wrapping in tables

svn: r401
This commit is contained in:
Don Allingham 2001-09-12 02:21:13 +00:00
parent ac879dea61
commit b9cfa8a37b
2 changed files with 8 additions and 4 deletions

View File

@ -220,6 +220,10 @@ class PdfDoc(TextDoc):
pass pass
def end_cell(self): def end_cell(self):
if self.span == 1:
# self.cur_row.append(self.text)
self.cur_row.append(Paragraph(self.text,self.current_para))
else:
self.cur_row.append(self.text) self.cur_row.append(self.text)
for val in range(1,self.span): for val in range(1,self.span):
self.cur_row.append("") self.cur_row.append("")

View File

@ -116,9 +116,9 @@ class FamilyGroup:
table = TableStyle() table = TableStyle()
table.set_width(100) table.set_width(100)
table.set_columns(4) table.set_columns(4)
table.set_column_width(0,5) table.set_column_width(0,7)
table.set_column_width(1,15) table.set_column_width(1,18)
table.set_column_width(2,40) table.set_column_width(2,35)
table.set_column_width(3,40) table.set_column_width(3,40)
self.doc.add_table_style('ChildTable',table) self.doc.add_table_style('ChildTable',table)