2004-12-13 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py (generation): Avoid empty sections. svn: r3801
This commit is contained in:
parent
8179685348
commit
4f64dd0fea
@ -1,3 +1,6 @@
|
||||
2004-12-13 Tim Waugh <twaugh@redhat.com>
|
||||
* src/plugins/Ancestors.py (generation): Avoid empty sections.
|
||||
|
||||
2004-12-09 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||
* src/PedView.py (get_distance): Remove function; use similar
|
||||
from Relationship module.
|
||||
|
@ -227,6 +227,7 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
for family_handle in pfamily_handles:
|
||||
people.extend (self.family (family_handle, already_described))
|
||||
|
||||
paternal_known = (len (people) > 0)
|
||||
if thisgen > 2 and len (mfamily_handles):
|
||||
for self.gp in [self.database.get_family_from_handle(mfamily_handles[0]).get_father_handle (),
|
||||
self.database.get_family_from_handle(mfamily_handles[0]).get_mother_handle ()]:
|
||||
@ -248,7 +249,7 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
if len (people):
|
||||
if self.pgbrk:
|
||||
self.doc.page_break()
|
||||
self.doc.start_paragraph ("AR-Heading")
|
||||
|
||||
family_handles = pfamily_handles
|
||||
family_handles.extend (mfamily_handles)
|
||||
for self.gp in [self.database.get_family_from_handle(family_handles[0]).get_father_handle (),
|
||||
@ -256,6 +257,8 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
if self.gp:
|
||||
break
|
||||
|
||||
if paternal_known:
|
||||
self.doc.start_paragraph ("AR-Heading")
|
||||
relstring = self.relationship.get_grandparents_string (self.start,
|
||||
self.database.get_person_from_handle(self.gp))[0]
|
||||
if thisgen == 2:
|
||||
@ -269,6 +272,7 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
|
||||
self.doc.write_text (heading)
|
||||
self.doc.end_paragraph ()
|
||||
|
||||
self.write_paragraphs (people)
|
||||
|
||||
next_pfamily_handles = []
|
||||
|
Loading…
Reference in New Issue
Block a user