diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-17 19:59:57 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-18 15:22:50 +0100 |
commit | 48d9c8eb6eb07a38ec8ec2cee1eb144708624d6b (patch) | |
tree | f3f0dc13726ca82aa88f9229fb5d73294d399f28 /core/save-git.c | |
parent | a225f625884122dde138187bd7a404b04ea2b300 (diff) | |
download | subsurface-48d9c8eb6eb07a38ec8ec2cee1eb144708624d6b.tar.gz |
core: fix git storage save (regression 4.7.4 -> 4.7.5)
Commit 46004c39e266fe7 introduces a new field in the logbook outputs
(depth of a cylinder). While in XML the depth unit is stored with a space
between value and unit (m), in our git storage, the unit m is without
space. As the git storage parser uses a space to separate individual
key/value pairs, the erroneously saved space results in parsing warnings
when opening the logbook.
The unwanted space is normally saved just after download of a new dive
from the dive computers, so all desktop-git-storage uses are affected,
and more worrying, mobile beta users.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c index 4c80b3b29..46a4a24aa 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -158,7 +158,7 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive) if (cylinder->cylinder_use != OC_GAS) put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]); if (cylinder->depth.mm != 0) - put_milli(b, " depth='", cylinder->depth.mm, " m'"); + put_milli(b, " depth='", cylinder->depth.mm, "m'"); put_string(b, "\n"); } } |