0002288: Missing dot/space after spouse's name on DetAncestral report
svn: r10887
This commit is contained in:
parent
ca62125e5b
commit
0b2bc9d647
@ -561,11 +561,11 @@ class DetAncestorReport(Report):
|
|||||||
def write_mate(self, mate):
|
def write_mate(self, mate):
|
||||||
"""Output birth, death, parentage, marriage and notes information """
|
"""Output birth, death, parentage, marriage and notes information """
|
||||||
ind = None
|
ind = None
|
||||||
|
has_info = False
|
||||||
|
|
||||||
for family_handle in mate.get_family_handle_list():
|
for family_handle in mate.get_family_handle_list():
|
||||||
family = self.database.get_family_from_handle(family_handle)
|
family = self.database.get_family_from_handle(family_handle)
|
||||||
ind_handle = None
|
ind_handle = None
|
||||||
has_info = False
|
|
||||||
if mate.get_gender() == gen.lib.Person.MALE:
|
if mate.get_gender() == gen.lib.Person.MALE:
|
||||||
ind_handle = family.get_mother_handle()
|
ind_handle = family.get_mother_handle()
|
||||||
else:
|
else:
|
||||||
@ -587,13 +587,25 @@ class DetAncestorReport(Report):
|
|||||||
f = self.database.get_family_from_handle(family_handle)
|
f = self.database.get_family_from_handle(family_handle)
|
||||||
if f.get_mother_handle() or f.get_father_handle():
|
if f.get_mother_handle() or f.get_father_handle():
|
||||||
has_info = True
|
has_info = True
|
||||||
|
break
|
||||||
|
|
||||||
if has_info:
|
if has_info:
|
||||||
self.doc.start_paragraph("DAR-Entry")
|
self.doc.start_paragraph("DAR-Entry")
|
||||||
|
|
||||||
person_name = _nd.display(ind)
|
plist = ind.get_media_list()
|
||||||
person_mark = ReportUtils.get_person_mark(self.database, ind)
|
|
||||||
self.doc.write_text(person_name, person_mark)
|
if self.addimages and len(plist) > 0:
|
||||||
|
photo = plist[0]
|
||||||
|
ReportUtils.insert_image(self.database, self.doc, photo)
|
||||||
|
|
||||||
|
name = _nd.display_formal(ind)
|
||||||
|
mark = ReportUtils.get_person_mark(self.database, ind)
|
||||||
|
|
||||||
|
self.doc.write_text(name, mark)
|
||||||
|
if name[-1:] == '.':
|
||||||
|
self.doc.write_text("%s " % self.endnotes(ind))
|
||||||
|
else:
|
||||||
|
self.doc.write_text("%s. " % self.endnotes(ind))
|
||||||
|
|
||||||
first_name = ReportUtils.common_name(ind, self.usecall)
|
first_name = ReportUtils.common_name(ind, self.usecall)
|
||||||
print_name = first_name
|
print_name = first_name
|
||||||
|
Loading…
Reference in New Issue
Block a user