From 44f3fcde190511fd1a622cb6584060d2170f6f2e Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 8 Sep 2009 08:42:44 +0000 Subject: [PATCH] String must be unicode for truncation to work for non ascii characters. svn: r13172 --- src/FilterEditor/_ShowResults.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FilterEditor/_ShowResults.py b/src/FilterEditor/_ShowResults.py index c9aff656b..5d48f78ec 100644 --- a/src/FilterEditor/_ShowResults.py +++ b/src/FilterEditor/_ShowResults.py @@ -134,6 +134,8 @@ class ShowResults(ManagedWindow.ManagedWindow): elif self.namespace == 'Note': note = self.db.get_note_from_handle(handle) name = note.get().replace('\n', ' ') + #String must be unicode for truncation to work for non ascii characters + name = unicode(name) if len(name) > 80: name = name[:80]+"..." gid = note.get_gramps_id()