Make Detailed Descendant Report work with multiple notes.

svn: r8322
This commit is contained in:
Brian Matherly 2007-03-27 04:25:25 +00:00
parent 86fe9d11a8
commit aa57b4b1a6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2007-03-26 Brian Matherly <brian@gramps-project.org>
* src/plugins/DetDescendantReport.py: fix for multiple notes.
2007-03-26 Brian Matherly <brian@gramps-project.org>
* src/plugins/DetAncestralReport.py: fix for multiple notes.

View File

@ -297,12 +297,14 @@ class DetDescendantReport(Report):
if self.includeMates:
self.write_mate(person)
if person.get_note() != "" and self.includeNotes:
notelist = person.get_note_list()
if len(notelist) > 0 and self.includeNotes:
self.doc.start_paragraph("DDR-NoteHeader")
self.doc.write_text(_("Notes for %s") % name)
self.doc.end_paragraph()
self.doc.write_note(person.get_note(),person.get_note_format(),
"DDR-Entry")
for notehandle in notelist:
note = self.database.get_note_from_handle(notehandle)
self.doc.write_note(note.get(),note.get_format(),"DDR-Entry")
first = True
if self.includeNames: