We need to quote the tick char (') on tags as this is used as XML
attribute.

Signed-off-by: Miika Turkia <[email protected]>
---
 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

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to