Final fix of issue 3935, coding problem in Windows.

svn: r15492
This commit is contained in:
Peter Landgren 2010-05-28 13:18:48 +00:00
parent 2ff12bdbcf
commit 1db7cd2051

View File

@ -1351,10 +1351,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] + "..."