mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-10-31 18:15:16 +00:00 
			
		
		
		
	add quoting for infotext values that have a colon in them
This commit is contained in:
		
							parent
							
								
									20ae71faa8
								
							
						
					
					
						commit
						10dbee0d59
					
				| @ -35,7 +35,7 @@ def reset(): | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def quote(text): | def quote(text): | ||||||
|     if ',' not in str(text) and '\n' not in str(text): |     if ',' not in str(text) and '\n' not in str(text) and ':' not in str(text): | ||||||
|         return text |         return text | ||||||
| 
 | 
 | ||||||
|     return json.dumps(text, ensure_ascii=False) |     return json.dumps(text, ensure_ascii=False) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 AUTOMATIC
						AUTOMATIC