mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	html_diff: Really return str, not bytes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							80c0e60edc
						
					
				
				
					commit
					3e7503a607
				
			@@ -19,6 +19,6 @@ def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int]=None) ->
 | 
			
		||||
        elem.tag = 'span'
 | 
			
		||||
        elem.set('class', 'highlight_text_inserted')
 | 
			
		||||
 | 
			
		||||
    retval = lxml.html.tostring(fragment)
 | 
			
		||||
    retval = lxml.html.tostring(fragment, encoding="unicode")
 | 
			
		||||
 | 
			
		||||
    return retval
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user