Some unnecessary unicode conversion cleanup after fix of issue 4078.

svn: r15603
This commit is contained in:
Peter Landgren 2010-06-30 07:10:12 +00:00
parent 71b6877928
commit 57006ccfbe

View File

@ -701,9 +701,7 @@ class GuiNoteOption(gtk.HBox):
"""
if note:
note_id = note.get_gramps_id()
txt = " ".join(note.get().split())
#String must be unicode for truncation to work for non ascii characters
txt = unicode(txt)
txt = u" ".join(note.get().split())
if len(txt) > 35:
txt = txt[:35] + "..."
txt = "%s [%s]" % (txt, note_id)