tree-wide: use '"' instead of '\"'

The escape used previously was redundant and made things more confusing.
This commit is contained in:
Louis Taylor
2019-01-17 16:46:29 +00:00
parent e4a8db1fbd
commit e768a4f032
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -724,7 +724,7 @@ void json_escape(
fputs(" ]", f);
} else {
fputc('\"', f);
fputc('"', f);
while (l > 0) {
if (IN_SET(*p, '"', '\\')) {
@@ -741,7 +741,7 @@ void json_escape(
l--;
}
fputc('\"', f);
fputc('"', f);
}
}
+1 -1
View File
@@ -191,7 +191,7 @@ int xml_tokenize(const char **p, char **name, void **state, unsigned *line) {
if (*c == '=') {
c++;
if (IN_SET(*c, '\'', '\"')) {
if (IN_SET(*c, '\'', '"')) {
/* Tag with a quoted value */
e = strchr(c+1, *c);