Changeset 48d9c8e in subsurface


Ignore:
Timestamp:
Dec 18, 2017, 6:22:50 AM (5 weeks ago)
Author:
Jan Mulder <jlmulder@…>
Branches:
master
Children:
7b88f830
Parents:
a225f625
git-author:
Jan Mulder <jlmulder@…> (12/17/17 10:59:57)
git-committer:
Jan Mulder <jlmulder@…> (12/18/17 06:22:50)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/save-git.c

    r46004c39 r48d9c8e  
    159159                        put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]);
    160160                if (cylinder->depth.mm != 0)
    161                         put_milli(b, " depth='", cylinder->depth.mm, " m'");
     161                        put_milli(b, " depth='", cylinder->depth.mm, "m'");
    162162                put_string(b, "\n");
    163163        }
Note: See TracChangeset for help on using the changeset viewer.