Fix of issue 4078, note.get() unicode now.
svn: r15597
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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=[
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user