From 698beec5c18271aaec33260205f6f78f69e91fbc Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Wed, 6 Apr 2005 13:54:12 +0000 Subject: [PATCH] * src/PedView.py: Truncate place names because they tend to be loooong. svn: r4309 --- gramps2/ChangeLog | 3 +++ gramps2/src/PedView.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index eae8beb73..33c1b1830 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-04-06 Martin Hawlisch + * src/PedView.py: Truncate place names because they tend to be loooong. + 2005-04-06 Richard Taylor * src/DdTargets.py: added PERSON_LINK_LIST target. * src/FamilyView.py: corrected bug when person is droped if there is no current diff --git a/gramps2/src/PedView.py b/gramps2/src/PedView.py index e750b80a2..08cf99d1b 100644 --- a/gramps2/src/PedView.py +++ b/gramps2/src/PedView.py @@ -770,7 +770,10 @@ def build_detail_string(db,person): if place_handle: place_title = db.get_place_from_handle(place_handle).get_title() if place_title != "": - ep = place_title + if len(place_title) > 15: + ep = place_title[:14]+"..." + else: + ep = place_title if ep: return u"\n%s %s, %s" % (label,ed,ep) return u"\n%s %s" % (label,ed)