KinshipReport - add the number of people in each category.

svn: r9931
This commit is contained in:
Brian Matherly
2008-01-25 02:00:03 +00:00
parent c2a6656f0e
commit 924bdbde97
2 changed files with 6 additions and 2 deletions

View File

@@ -278,9 +278,10 @@ class KinshipReport(Report):
Write information about a group of people - including the title.
"""
cap_title = capitalize(title)
subtitle = "%s (%d)" % (cap_title, len(people_handles))
self.doc.start_paragraph("KIN-Subtitle")
mark = BaseDoc.IndexMark(cap_title,BaseDoc.INDEX_TYPE_TOC,2)
self.doc.write_text(cap_title,mark)
mark = BaseDoc.IndexMark(cap_title, BaseDoc.INDEX_TYPE_TOC, 2)
self.doc.write_text(subtitle, mark)
self.doc.end_paragraph()
for person_handle in people_handles:
self.write_person(person_handle)