String must be unicode for truncation to work for non ascii characters.
svn: r13174
This commit is contained in:
@ -687,10 +687,10 @@ 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 = " ".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] + "..."
|
||||||
else:
|
|
||||||
txt = txt
|
|
||||||
txt = "%s [%s]" % (txt, note_id)
|
txt = "%s [%s]" % (txt, note_id)
|
||||||
|
|
||||||
self.__note_label.set_text( txt )
|
self.__note_label.set_text( txt )
|
||||||
|
Reference in New Issue
Block a user