summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2016-07-11 11:47:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-21 20:00:04 +0900
commit7c8073e7eac152d9a7283d036e8c333f21aff444 (patch)
treebf6c94eacb4e47723d5b87335b9ca5544eba0744
parentb25d1c04c47eecf2b01578c2a7654eb60da1399a (diff)
downloadsubsurface-7c8073e7eac152d9a7283d036e8c333f21aff444.tar.gz
Add proper line ending for unit line in git save format
The imperial and metric unit formats already had this, but the personalized one missed the newline at the end. It shouldn't really matter, since it's the last line of the file, but it is not right. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index 0620a3f3d..f174937bd 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -815,7 +815,7 @@ static void save_units(void *_b)
else if (prefs.unit_system == IMPERIAL)
put_string(b, "units IMPERIAL\n");
else
- put_format(b, "units PERSONALIZE %s %s %s %s %s %s",
+ put_format(b, "units PERSONALIZE %s %s %s %s %s %s\n",
prefs.units.length == METERS ? "METERS" : "FEET",
prefs.units.volume == LITER ? "LITER" : "CUFT",
prefs.units.pressure == BAR ? "BAR" : prefs.units.pressure == PSI ? "PSI" : "PASCAL",