aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-26 12:45:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-26 12:45:34 -0400
commit047eb93fa8afc06afd97d14820745c2f8dafcc7e (patch)
tree9a85c7b324f6fde1027c3b14efc9d28dd0d61c3a
parenta30f5883789b7ad52d699da3c22d624dd7311355 (diff)
More XML fixes
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 742f8032..029b1ba4 100644
--- a/ast.c
+++ b/ast.c
@@ -58,8 +58,8 @@ CORD when_clauses_to_xml(when_clause_t *clauses) {
CORD c = CORD_EMPTY;
for (; clauses; clauses = clauses->next) {
c = CORD_all(c, "<case");
- if (clauses->var) c = CORD_all(c, " var=", Match(clauses->var, Var)->name);
- c = CORD_all(c, " tag=", ast_to_xml(clauses->tag_name), ">", ast_to_xml(clauses->body), "</case>");
+ if (clauses->var) c = CORD_all(c, " var=\"", Match(clauses->var, Var)->name, "\"");
+ c = CORD_all(c, " tag=\"", ast_to_xml(clauses->tag_name), "\">", ast_to_xml(clauses->body), "</case>");
}
return c;
}