2003-06-25 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py: Handle page break option. svn: r1780
This commit is contained in:
parent
ebd0ed14c9
commit
47f96ba80e
@ -1,4 +1,5 @@
|
|||||||
2003-06-25 Tim Waugh <twaugh@redhat.com>
|
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
|
* src/Date.py: Make sure range is 0 when it should be. Dates compare
|
||||||
differently if only one is a range.
|
differently if only one is a range.
|
||||||
|
|
||||||
|
@ -174,6 +174,8 @@ class AncestorsReport (Report.Report):
|
|||||||
people.extend (self.family (family, already_described))
|
people.extend (self.family (family, already_described))
|
||||||
|
|
||||||
if len (people):
|
if len (people):
|
||||||
|
if self.pgbrk:
|
||||||
|
self.doc.page_break()
|
||||||
self.doc.start_paragraph ("Generation")
|
self.doc.start_paragraph ("Generation")
|
||||||
self.doc.write_text ("Generation %d" % thisgen)
|
self.doc.write_text ("Generation %d" % thisgen)
|
||||||
self.doc.end_paragraph ()
|
self.doc.end_paragraph ()
|
||||||
@ -326,7 +328,9 @@ class AncestorsReport (Report.Report):
|
|||||||
if text:
|
if text:
|
||||||
info += ' ' + text[0].lower() + text[1:]
|
info += ' ' + text[0].lower() + text[1:]
|
||||||
elif dateobj.getValid ():
|
elif dateobj.getValid ():
|
||||||
if (dateobj.getDayValid () and
|
if dateobj.isRange ():
|
||||||
|
info += ' '
|
||||||
|
elif (dateobj.getDayValid () and
|
||||||
dateobj.getMonthValid () and
|
dateobj.getMonthValid () and
|
||||||
dateobj.getYearValid ()):
|
dateobj.getYearValid ()):
|
||||||
info += ' on '
|
info += ' on '
|
||||||
|
Loading…
Reference in New Issue
Block a user