Fixed line wrapping in tables
svn: r401
This commit is contained in:
parent
ac879dea61
commit
b9cfa8a37b
@ -220,7 +220,11 @@ class PdfDoc(TextDoc):
|
||||
pass
|
||||
|
||||
def end_cell(self):
|
||||
self.cur_row.append(self.text)
|
||||
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)
|
||||
for val in range(1,self.span):
|
||||
self.cur_row.append("")
|
||||
|
||||
|
@ -116,9 +116,9 @@ class FamilyGroup:
|
||||
table = TableStyle()
|
||||
table.set_width(100)
|
||||
table.set_columns(4)
|
||||
table.set_column_width(0,5)
|
||||
table.set_column_width(1,15)
|
||||
table.set_column_width(2,40)
|
||||
table.set_column_width(0,7)
|
||||
table.set_column_width(1,18)
|
||||
table.set_column_width(2,35)
|
||||
table.set_column_width(3,40)
|
||||
self.doc.add_table_style('ChildTable',table)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user