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
@ -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…
x
Reference in New Issue
Block a user