From b17c7f07095da886a688de2d36f79d433d6110b9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 10 Sep 2011 15:17:33 -0700 Subject: [PATCH] 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 --- save-xml.c | 1 + 1 file changed, 1 insertion(+) 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='", "'"); -- 2.43.0