Final fix of issue 3935, coding problem in Windows.
svn: r15493
This commit is contained in:
parent
23b1178629
commit
bbf095ddb5
@ -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] + "..."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user