diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 17:44:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 17:44:13 -0700 |
commit | 0189de695c1b361a1ef85c0523a50f2abc5f0dbf (patch) | |
tree | 24d9936a3fbb681c34abe8bbed1777b37a1d1590 /save-xml.c | |
parent | c139aa8d51ef63a79cf8eeb809621ad06b72b808 (diff) | |
download | subsurface-0189de695c1b361a1ef85c0523a50f2abc5f0dbf.tar.gz |
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>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c index 9a6c5c165..efff30088 100644 --- a/save-xml.c +++ b/save-xml.c @@ -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)); } } |