mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +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 '&':
|
case '&':
|
||||||
escape = "&";
|
escape = "&";
|
||||||
break;
|
break;
|
||||||
|
case '\'':
|
||||||
|
escape = "'";
|
||||||
|
break;
|
||||||
|
case '\"':
|
||||||
|
escape = """;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
fwrite(text, (p - text - 1), 1, f);
|
fwrite(text, (p - text - 1), 1, f);
|
||||||
if (!escape)
|
if (!escape)
|
||||||
|
|
Loading…
Reference in a new issue