1567: beautify Relation Ship Graph, remove - if no date of birth or death

svn: r20840
This commit is contained in:
Benny Malengier 2012-12-26 18:19:17 +00:00
parent 8b94955772
commit ec0b9fb54b

View File

@ -400,8 +400,15 @@ class RelGraphReport(Report):
label += " (%s)" % p_id
if self.includedates:
birth, death = self.get_date_strings(person)
label = label + '%s(%s - %s)' % (lineDelimiter, birth, death)
if birth or death:
label += ' %s(' % lineDelimiter
if birth:
label += '%s' % birth
label += ' - '
if death:
label += '%s' % death
label += ')'
# see if we have a table that needs to be terminated
if self.bUseHtmlOutput:
label += '</TD></TR></TABLE>'