From acff84a58da0afd548de22f8fb93c25625692668 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 17 Feb 2015 19:28:00 +0200 Subject: [PATCH] Quote tags as attributes We need to quote the tick char (') on tags as this is used as XML attribute. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- save-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-xml.c b/save-xml.c index 053b8fc96..8ca2bfd38 100644 --- a/save-xml.c +++ b/save-xml.c @@ -315,7 +315,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, "'");