From b9cfa8a37b6ff26c882171852e1b526542a391e4 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 12 Sep 2001 02:21:13 +0000 Subject: [PATCH] Fixed line wrapping in tables svn: r401 --- gramps/src/PdfDoc.py | 6 +++++- gramps/src/plugins/FamilyGroup.py | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gramps/src/PdfDoc.py b/gramps/src/PdfDoc.py index 2ca01ba74..536c2afa5 100644 --- a/gramps/src/PdfDoc.py +++ b/gramps/src/PdfDoc.py @@ -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("") diff --git a/gramps/src/plugins/FamilyGroup.py b/gramps/src/plugins/FamilyGroup.py index f51f070ed..2ce7edadb 100644 --- a/gramps/src/plugins/FamilyGroup.py +++ b/gramps/src/plugins/FamilyGroup.py @@ -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)