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