mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Merge branch 'quoting' of git://git.hohndel.org/subsurface
Pull xml quoting fix from Dirk Hohndel. * 'quoting' of git://git.hohndel.org/subsurface: Add single and double quotes to escaped characters in XML output
This commit is contained in:
		
						commit
						0640af873b
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -97,6 +97,12 @@ static void quote(FILE *f, const char *text)
 | 
			
		|||
		case '&':
 | 
			
		||||
			escape = "&";
 | 
			
		||||
			break;
 | 
			
		||||
		case '\'':
 | 
			
		||||
			escape = "'";
 | 
			
		||||
			break;
 | 
			
		||||
		case '\"':
 | 
			
		||||
			escape = """;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		fwrite(text, (p - text - 1), 1, f);
 | 
			
		||||
		if (!escape)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue