From 57dccb292be6d4d533f5329f4798c264c4cfe317 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 26 Dec 2012 18:19:51 +0000 Subject: [PATCH] 1567: beautify Relation Ship Graph, remove - if no date of birth or death svn: r20841 --- gramps/plugins/graph/gvrelgraph.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/graph/gvrelgraph.py b/gramps/plugins/graph/gvrelgraph.py index 02f0af3bf..259c79261 100644 --- a/gramps/plugins/graph/gvrelgraph.py +++ b/gramps/plugins/graph/gvrelgraph.py @@ -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 += ''