mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
773ee0d990
commit
346bb9f31f
2 changed files with 2 additions and 2 deletions
|
@ -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, "");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue