From: Linus Torvalds Date: Fri, 2 Sep 2011 00:44:13 +0000 (-0700) Subject: Do gasmix as an empty element XML too X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0189de695c1b361a1ef85c0523a50f2abc5f0dbf;p=ext%2Fsubsurface.git 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 --- diff --git a/save-xml.c b/save-xml.c index 9a6c5c1..efff300 100644 --- a/save-xml.c +++ b/save-xml.c @@ -66,7 +66,7 @@ static void save_gasmix(FILE *f, struct dive *dive) fprintf(f, " he.permille) fprintf(f, " he='%u.%u%%'", FRACTION(he, 10)); - fprintf(f, " n2='%u.%u%%'>\n", FRACTION(n2, 10)); + fprintf(f, " n2='%u.%u%%' />\n", FRACTION(n2, 10)); } }