mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do gasmix as an empty element XML too
Let's make it a goal that the XML we output is pretty. That clearly was never a goal for the Suunto XML, but we can be oh-so-much-better than that. I still don't love XML, but let's try to make the best of a bad situation, and take pride in what we do. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c139aa8d51
commit
0189de695c
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static void save_gasmix(FILE *f, struct dive *dive)
|
|||
fprintf(f, " <gasmix o2='%u.%u%%'", FRACTION(o2, 10));
|
||||
if (mix->he.permille)
|
||||
fprintf(f, " he='%u.%u%%'", FRACTION(he, 10));
|
||||
fprintf(f, " n2='%u.%u%%'></gasmix>\n", FRACTION(n2, 10));
|
||||
fprintf(f, " n2='%u.%u%%' />\n", FRACTION(n2, 10));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue