String must be unicode for truncation to work for non ascii characters.

svn: r13173
This commit is contained in:
Peter Landgren 2009-09-08 08:45:08 +00:00
parent 30acde6546
commit 37db7366c1

View File

@ -133,6 +133,8 @@ class ShowResults(ManagedWindow.ManagedWindow):
elif self.namespace == 'Note':
note = self.db.get_note_from_handle(handle)
name = note.get().replace('\n', ' ')
#String must be unicode for truncation to work for non ascii characters
name = unicode(name)
if len(name) > 80:
name = name[:80]+"..."
gid = note.get_gramps_id()