diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-26 12:45:34 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-26 12:45:34 -0400 |
| commit | 047eb93fa8afc06afd97d14820745c2f8dafcc7e (patch) | |
| tree | 9a85c7b324f6fde1027c3b14efc9d28dd0d61c3a | |
| parent | a30f5883789b7ad52d699da3c22d624dd7311355 (diff) | |
More XML fixes
| -rw-r--r-- | ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
