diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-02-17 19:28:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-17 12:28:35 -0800 |
commit | acff84a58da0afd548de22f8fb93c25625692668 (patch) | |
tree | b9474143e6dacfadfa171912b6fa8259aaead11b | |
parent | 598d5866c2b300087fe8c3d880b4e3f86b83c205 (diff) | |
download | subsurface-acff84a58da0afd548de22f8fb93c25625692668.tar.gz |
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 <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "'"); |