[PATCH 2/2] Quote tags as attributes
Miika Turkia
miika.turkia at gmail.com
Tue Feb 17 09:28:00 PST 2015
We need to quote the tick char (') on tags as this is used as XML
attribute.
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
save-xml.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/save-xml.c b/save-xml.c
index d5f1e15..8366f87 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -285,7 +285,7 @@ static void save_tags(struct membuffer *b, struct tag_entry *entry)
struct divetag *tag = entry->tag;
put_string(b, sep);
/* If the tag has been translated, write the source to the xml file */
- quote(b, tag->source ?: tag->name, 0);
+ quote(b, tag->source ?: tag->name, 1);
sep = ", ";
} while ((entry = entry->next) != NULL);
put_string(b, "'");
--
2.1.0
More information about the subsurface
mailing list