From 3bf07bf96f0c013a00338212c07b6563a33b0b0a Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 1 Jul 2005 22:30:32 +0000 Subject: [PATCH] * src/plugins/WebPage.py (write_sibling): Apply patch from bug # 1230430 at sf.net with minor tweaks. svn: r4894 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/WebPage.py | 24 ++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4f99441b3..1134bdd79 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-01 Alex Roitman + * src/plugins/WebPage.py (write_sibling): Apply patch from bug # + 1230430 at sf.net with minor tweaks. + 2005-06-29 Don Allingham * src/GrampsDbBase.py: don't count_person for gender stats on add_person, since already done it commit_person diff --git a/gramps2/src/plugins/WebPage.py b/gramps2/src/plugins/WebPage.py index 87fecfbc3..8500b6d46 100644 --- a/gramps2/src/plugins/WebPage.py +++ b/gramps2/src/plugins/WebPage.py @@ -715,12 +715,24 @@ class IndividualPage: self.doc.write_text(_("Siblings")) self.doc.end_paragraph() - self.doc.start_table("three","IndTable") - + self.doc.start_table("four","IndTable") + self.doc.start_row() + self.doc.start_cell("NormalCell") + self.doc.start_paragraph("Label") + self.doc.write_text(_("Siblings")) + self.doc.end_paragraph() + self.doc.end_cell() + + self.doc.start_cell("NormalCell") + first = True for child_handle in all_sisters: child = self.db.get_person_from_handle(child_handle) - self.doc.start_paragraph("Data") name = child.get_primary_name().get_regular_name() + if first: + self.doc.start_paragraph("Data") + first = False + else: + self.doc.write_text('\n') if self.person.get_handle() == child_handle: self.doc.write_text(name) elif self.list.has_key(child_handle): @@ -729,8 +741,12 @@ class IndividualPage: self.doc.end_link() else: self.doc.write_text(name) + if not first: self.doc.end_paragraph() - + + self.doc.end_cell() + self.doc.end_row() + self.doc.end_table() #------------------------------------------------------------------------ #