From d0be78922348f4d654296bd097cc0649fc61d245 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 16 Sep 2005 04:11:48 +0000 Subject: [PATCH] * src/DescendReport.py: fix indentation svn: r5195 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/DescendReport.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f028cd772..b5b35f36b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-09-15 Don Allingham + * src/DescendReport.py: fix indentation + 2005-09-14 Don Allingham * src/CalSdn.py: fix Hebrew date parsing * src/DescendReport.py: enhanced to add spouses and places diff --git a/gramps2/src/plugins/DescendReport.py b/gramps2/src/plugins/DescendReport.py index b8a7d73ff..ea58abbb2 100644 --- a/gramps2/src/plugins/DescendReport.py +++ b/gramps2/src/plugins/DescendReport.py @@ -156,8 +156,7 @@ class DescendantReport(Report.Report): def dump(self,level,person): - self.doc.start_paragraph("DR-Level%d" % level) - self.doc.write_text("%d. " % level) + self.doc.start_paragraph("DR-Level%d" % level,"%d." % level) self.doc.write_text(NameDisplay.displayer.display(person)) self.dump_dates(person) self.doc.end_paragraph() @@ -228,14 +227,15 @@ class DescendantOptions(ReportOptions.ReportOptions): p = BaseDoc.ParagraphStyle() p.set_font(f) p.set_padding(ReportUtils.pt2cm(f.get_size()*0.25)) - p.set_left_margin(min(10.0,float(i-1))) + p.set_first_indent(-0.5) + p.set_left_margin(min(10.0,float(i-0.5))) p.set_description(_("The style used for the level %d display.") % i) default_style.add_style("DR-Level%d" % i,p) p = BaseDoc.ParagraphStyle() p.set_font(f) p.set_padding(ReportUtils.pt2cm(f.get_size()*0.25)) - p.set_left_margin(min(10.0,float(i-1)+0.5)) + p.set_left_margin(min(10.0,float(i-0.5))) p.set_description(_("The style used for the spouse level %d display.") % i) default_style.add_style("DR-Spouse%d" % i,p)