From bb170241dda02119fd756a182c6a686a2266ab45 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Wed, 30 Jun 2010 07:14:37 +0000 Subject: [PATCH] Some unnecessary unicode conversion cleanup after fix of issue 4078. svn: r15606 --- src/gui/filtereditor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/filtereditor.py b/src/gui/filtereditor.py index 80d9d59ed..7db0bf30d 100644 --- a/src/gui/filtereditor.py +++ b/src/gui/filtereditor.py @@ -894,9 +894,7 @@ class ShowResults(ManagedWindow.ManagedWindow): gid = repo.get_gramps_id() 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) + name = note.get().replace(u'\n', u' ') if len(name) > 80: name = name[:80]+"..." gid = note.get_gramps_id()