mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							11741543da
						
					
				
				
					commit
					6e4c3e41dc
				
			@@ -12,13 +12,13 @@ def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int] = None) -
 | 
			
		||||
    retval = htmldiff(s1, s2)
 | 
			
		||||
    fragment = lxml.html.fromstring(retval)
 | 
			
		||||
 | 
			
		||||
    for elem in fragment.cssselect('del'):
 | 
			
		||||
        elem.tag = 'span'
 | 
			
		||||
        elem.set('class', 'highlight_text_deleted')
 | 
			
		||||
    for elem in fragment.cssselect("del"):
 | 
			
		||||
        elem.tag = "span"
 | 
			
		||||
        elem.set("class", "highlight_text_deleted")
 | 
			
		||||
 | 
			
		||||
    for elem in fragment.cssselect('ins'):
 | 
			
		||||
        elem.tag = 'span'
 | 
			
		||||
        elem.set('class', 'highlight_text_inserted')
 | 
			
		||||
    for elem in fragment.cssselect("ins"):
 | 
			
		||||
        elem.tag = "span"
 | 
			
		||||
        elem.set("class", "highlight_text_inserted")
 | 
			
		||||
 | 
			
		||||
    retval = lxml.html.tostring(fragment, encoding="unicode")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user