mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	strip <A> attribute values
This commit is contained in:
		
							parent
							
								
									650ba37e1d
								
							
						
					
					
						commit
						84175bacd1
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -322,6 +322,7 @@ def start_a(self, attrs): | |||
|         name = '' | ||||
|         type = '' | ||||
|         for attrname, value in attrs: | ||||
| 	    value = string.strip(value) | ||||
|             if attrname == 'href': | ||||
|                 href = value | ||||
|             if attrname == 'name': | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum