Some unnecessary unicode conversion cleanup after fix of issue 4078.

svn: r15606
This commit is contained in:
Peter Landgren 2010-06-30 07:14:37 +00:00
parent 9127018ca9
commit bb170241dd

View File

@ -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()