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

svn: r20841
This commit is contained in:
Benny Malengier 2012-12-26 18:19:51 +00:00
parent 8a8bf7c72e
commit 57dccb292b

View File

@ -400,7 +400,14 @@ 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: