summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2018-05-16 08:56:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-17 07:35:58 -0700
commit346bb9f31fb843515166e664629bdd128d23c722 (patch)
treef12a35f121a24f52e66591ffdf9350bfddc68c2c /core/save-xml.c
parent773ee0d990d1b5d9783a9eef5784e7c4963ca02c (diff)
downloadsubsurface-346bb9f31fb843515166e664629bdd128d23c722.tar.gz
Bugfix: Saving divemode to xml and to git
There is a space character missing in the xml generated by the present code. Insert a space character. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index 9eece665e..7198421e1 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -302,7 +302,7 @@ static void save_one_event(struct membuffer *b, struct dive *dive, struct event
show_index(b, ev->type, "type='", "'");
show_index(b, ev->flags, "flags='", "'");
if (!strcmp(ev->name,"modechange"))
- show_utf8(b, divemode_text[ev->value], "divemode='", "'",1);
+ show_utf8(b, divemode_text[ev->value], " divemode='", "'",1);
else
show_index(b, ev->value, "value='", "'");
show_utf8(b, ev->name, " name='", "'", 1);