KinshipReport - add the number of people in each category.
svn: r9931
This commit is contained in:
parent
c2a6656f0e
commit
924bdbde97
@ -1,3 +1,6 @@
|
||||
2008-01-24 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/KinshipReport.py: Include count for each category.
|
||||
|
||||
2008-01-24 Brian Matherly <brian@gramps-project.org>
|
||||
* src/PluginUtils/_GuiOptions.py:
|
||||
* src/ReportBase/_BareReportDialog.py:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user