From c3b8ec4fd859a4f5e2f5146931a57bc200c90bd0 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 8 Sep 2009 08:26:23 +0000 Subject: [PATCH] String must be unicode for truncation to work for non ascii characters. svn: r13170 --- src/Bookmarks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bookmarks.py b/src/Bookmarks.py index 79de7d4ea..48c4aceb3 100644 --- a/src/Bookmarks.py +++ b/src/Bookmarks.py @@ -428,6 +428,8 @@ class NoteBookmarks(ListBookmarks) : def make_label(self, handle): obj = self.dbstate.db.get_note_from_handle(handle) name = obj.get().replace('\n', ' ') + #String must be unicode for truncation to work for non ascii characters + name = unicode(name) if len(name) > 40: name = name[:40]+"..." return ("%s [%s]" % (name, obj.gramps_id), obj)