From 44ac39dfd0474a5adfa3465dfee690b9620bdbed Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 25 Jun 2003 11:06:42 +0000 Subject: [PATCH] 2003-06-25 Tim Waugh * src/plugins/Ancestors.py: Handle page break option. svn: r1780 --- ChangeLog | 1 + src/plugins/Ancestors.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aa738f5e3..a1236a9f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2003-06-25 Tim Waugh + * src/plugins/Ancestors.py: Handle page break option. * src/Date.py: Make sure range is 0 when it should be. Dates compare differently if only one is a range. diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index cb5b2f963..ac36e60b5 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -174,6 +174,8 @@ class AncestorsReport (Report.Report): people.extend (self.family (family, already_described)) if len (people): + if self.pgbrk: + self.doc.page_break() self.doc.start_paragraph ("Generation") self.doc.write_text ("Generation %d" % thisgen) self.doc.end_paragraph () @@ -326,7 +328,9 @@ class AncestorsReport (Report.Report): if text: info += ' ' + text[0].lower() + text[1:] elif dateobj.getValid (): - if (dateobj.getDayValid () and + if dateobj.isRange (): + info += ' ' + elif (dateobj.getDayValid () and dateobj.getMonthValid () and dateobj.getYearValid ()): info += ' on '