diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2018-05-16 08:56:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-17 07:35:58 -0700 |
commit | 346bb9f31fb843515166e664629bdd128d23c722 (patch) | |
tree | f12a35f121a24f52e66591ffdf9350bfddc68c2c | |
parent | 773ee0d990d1b5d9783a9eef5784e7c4963ca02c (diff) | |
download | subsurface-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>
-rw-r--r-- | core/save-git.c | 2 | ||||
-rw-r--r-- | core/save-xml.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/save-git.c b/core/save-git.c index c0f098d44..df6044c77 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -376,7 +376,7 @@ static void save_one_event(struct membuffer *b, struct dive *dive, struct event show_index(b, ev->flags, "flags=", ""); if (!strcmp(ev->name,"modechange")) - show_utf8(b, "divemode=", divemode_text[ev->value], ""); + show_utf8(b, " divemode=", divemode_text[ev->value], ""); else show_index(b, ev->value, "value=", ""); show_utf8(b, " name=", ev->name, ""); 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); |