From: Linus Torvalds Date: Sat, 10 Sep 2011 22:17:33 +0000 (-0700) Subject: Now that we don't mess up import, we can save the cylinder working pressure X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b17c7f07095da886a688de2d36f79d433d6110b9;p=ext%2Fsubsurface.git Now that we don't mess up import, we can save the cylinder working pressure We used to have the heuristic that if we saw a cylinder working pressure, then the cylinder size would be in cuft. Which meant that we couldn't export our working pressures, because it would mess things up on import. But working pressure is actually nice to know, if you ever work with cylinders in imperial units. So now that the import is fixed, add the working pressure to the export. Signed-off-by: Linus Torvalds --- diff --git a/save-xml.c b/save-xml.c index c5d4939..c93a828 100644 --- a/save-xml.c +++ b/save-xml.c @@ -180,6 +180,7 @@ static void save_cylinder_info(FILE *f, struct dive *dive) } if (volume) show_milli(f, " size='", volume, " l", "'"); + show_pressure(f, cylinder->type.workingpressure, " workpressure='", "'"); if (description) fprintf(f, " description='%s'", description); show_pressure(f, cylinder->start, " start='", "'");