diff --git a/src/gui/editors/displaytabs/namemodel.py b/src/gui/editors/displaytabs/namemodel.py index 37ff7a03f..b67e08ed8 100644 --- a/src/gui/editors/displaytabs/namemodel.py +++ b/src/gui/editors/displaytabs/namemodel.py @@ -137,7 +137,7 @@ class NameModel(gtk.TreeStore): nlist = name.get_note_list() if nlist: note = self.db.get_note_from_handle(nlist[0]) - text = unicode(note.get().replace('\n', ' ')) + text = note.get().replace('\n', ' ') if len(text) > 80: text = text[:80]+"..." return text diff --git a/src/gui/editors/displaytabs/notemodel.py b/src/gui/editors/displaytabs/notemodel.py index 6bef30d4c..c30b14eba 100644 --- a/src/gui/editors/displaytabs/notemodel.py +++ b/src/gui/editors/displaytabs/notemodel.py @@ -39,7 +39,7 @@ class NoteModel(gtk.ListStore): self.db = db for handle in note_list: note = self.db.get_note_from_handle(handle) - text = unicode(note.get().replace('\n', ' ')) + text = note.get().replace('\n', ' ') if len(text) > 80: text = text[:80]+"..." self.append(row=[