String must be unicode for truncation to work for non ascii characters.
svn: r13172
This commit is contained in:
		@@ -134,6 +134,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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user