Final fix of issue 3935, coding problem in Windows.

svn: r15493
This commit is contained in:
Peter Landgren 2010-05-28 13:21:14 +00:00
parent 23b1178629
commit bbf095ddb5

View File

@ -1366,10 +1366,10 @@ def navigation_label(db, nav_type, handle):
obj = db.get_note_from_handle(handle)
if obj:
label = obj.get()
label = " ".join(label.split())
# When strings are cut, make sure they are unicode
#otherwise you may end of with cutting within an utf-8 sequence
label = unicode(label)
label = " ".join(label.split())
if len(label) > 40:
label = label[:40] + "..."