2003-06-25 Tim Waugh <twaugh@redhat.com>

* src/plugins/Ancestors.py: Handle page break option.


svn: r1780
This commit is contained in:
Tim Waugh 2003-06-25 11:06:42 +00:00
parent 522ca62853
commit 44ac39dfd0
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2003-06-25 Tim Waugh <twaugh@redhat.com>
* 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.

View File

@ -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 '