Make Detailed Descendant Report work with multiple notes.
svn: r8322
This commit is contained in:
parent
86fe9d11a8
commit
aa57b4b1a6
@ -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>
|
2007-03-26 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/DetAncestralReport.py: fix for multiple notes.
|
* src/plugins/DetAncestralReport.py: fix for multiple notes.
|
||||||
|
|
||||||
|
@ -297,12 +297,14 @@ class DetDescendantReport(Report):
|
|||||||
if self.includeMates:
|
if self.includeMates:
|
||||||
self.write_mate(person)
|
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.start_paragraph("DDR-NoteHeader")
|
||||||
self.doc.write_text(_("Notes for %s") % name)
|
self.doc.write_text(_("Notes for %s") % name)
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
self.doc.write_note(person.get_note(),person.get_note_format(),
|
for notehandle in notelist:
|
||||||
"DDR-Entry")
|
note = self.database.get_note_from_handle(notehandle)
|
||||||
|
self.doc.write_note(note.get(),note.get_format(),"DDR-Entry")
|
||||||
|
|
||||||
first = True
|
first = True
|
||||||
if self.includeNames:
|
if self.includeNames:
|
||||||
|
Loading…
Reference in New Issue
Block a user