tree-wide: use '"' instead of '\"'
The escape used previously was redundant and made things more confusing.
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user