Some unnecessary unicode conversion cleanup after fix of issue 4078.
svn: r15608
This commit is contained in:
parent
945f6e5b9f
commit
51abf16ddb
@ -700,9 +700,7 @@ class GuiNoteOption(gtk.HBox):
|
|||||||
"""
|
"""
|
||||||
if note:
|
if note:
|
||||||
note_id = note.get_gramps_id()
|
note_id = note.get_gramps_id()
|
||||||
txt = " ".join(note.get().split())
|
txt = u" ".join(note.get().split())
|
||||||
#String must be unicode for truncation to work for non ascii characters
|
|
||||||
txt = unicode(txt)
|
|
||||||
if len(txt) > 35:
|
if len(txt) > 35:
|
||||||
txt = txt[:35] + "..."
|
txt = txt[:35] + "..."
|
||||||
txt = "%s [%s]" % (txt, note_id)
|
txt = "%s [%s]" % (txt, note_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user