mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168)
This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse.
This commit is contained in:
		
							parent
							
								
									8d26db45df
								
							
						
					
					
						commit
						e07a400c31
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -102,7 +102,7 @@ def handle_starttag(self, tag, attrs):
 | 
			
		|||
            if self.level > 0:
 | 
			
		||||
                self.nested_dl = True
 | 
			
		||||
        elif tag == 'li':
 | 
			
		||||
            s = '\n* ' if self.simplelist else '\n\n* '
 | 
			
		||||
            s = '\n* '
 | 
			
		||||
        elif tag == 'dt':
 | 
			
		||||
            s = '\n\n' if not self.nested_dl else '\n'  # Avoid extra line.
 | 
			
		||||
            self.nested_dl = False
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue