2003-12-16 Tim Waugh <twaugh@redhat.com>
* src/plugins/Aneestors.py: Use write_note() when appropriate. svn: r2532
This commit is contained in:
parent
b60316634d
commit
92af879c15
@ -1,3 +1,6 @@
|
||||
2003-12-16 Tim Waugh <twaugh@redhat.com>
|
||||
* src/plugins/Aneestors.py: Use write_note() when appropriate.
|
||||
|
||||
2003-12-15 Don Allingham <dallingham@users.sourceforge.net>
|
||||
* src/GrampsCfg.py: change the default prefixes so that they
|
||||
sort nicely numerically.
|
||||
|
@ -150,10 +150,14 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
self.doc.end_paragraph ()
|
||||
|
||||
note = source.getNote ()
|
||||
format = source.getNoteFormat ()
|
||||
if note:
|
||||
if format == 0:
|
||||
self.doc.start_paragraph ("AR-Details")
|
||||
self.doc.write_text (note)
|
||||
self.doc.end_paragraph ()
|
||||
else:
|
||||
self.doc.write_note (note, format, "AR-Details")
|
||||
|
||||
i += 1
|
||||
|
||||
@ -697,7 +701,8 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
if not (name_note == '' or name_note.find ('\n') != -1):
|
||||
return _(' Note about their name: ') + name_note
|
||||
note = person.getNote ()
|
||||
if not (note == '' or note.find ('\n') != -1):
|
||||
if not (person.getNoteFormat () != 0 or
|
||||
note == '' or note.find ('\n') != -1):
|
||||
return ' ' + note
|
||||
|
||||
return ''
|
||||
@ -717,7 +722,10 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
def long_notes (self, person, suppress_children = 0,
|
||||
already_described = []):
|
||||
note = person.getNote ()
|
||||
if note != '' and note.find ('\n') != -1:
|
||||
format = person.getNoteFormat ()
|
||||
if format != 0:
|
||||
paras = [ (self.doc.write_note, [note, format, 'AR-Details']) ]
|
||||
elif note != '' and note.find ('\n') != -1:
|
||||
paras = self.long_details (note, [])
|
||||
else:
|
||||
paras = []
|
||||
|
Loading…
Reference in New Issue
Block a user