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 14:07:15 -0800 |
commit | 3580c546db101ccdc5293ef1830e769458bf9d94 (patch) | |
tree | 8ddf97e905f09db0df59054b80210b82cdda0e21 /save-xml.c | |
parent | 5632c0b357bef09555b475212b619cb2eaddd7d5 (diff) | |
download | subsurface-3580c546db101ccdc5293ef1830e769458bf9d94.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>
Diffstat (limited to 'save-xml.c')
-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 d5f1e158a..8366f87ff 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, "'"); |