X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=80c26b88260fd70665fd0934c2fe79b6c6980486;hb=af290d5eb281662d336b8186a9df1a489d78ec9d;hp=4183b1c51ade4cb9fb36c0f2727d56a3b601fbbb;hpb=0f9d1757a4590f554bcfc87f79c7a72baa5ad95d;p=ext%2Fsubsurface.git
diff --git a/save-xml.c b/save-xml.c
index 4183b1c..80c26b8 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -182,6 +182,7 @@ static void save_overview(FILE *f, struct dive *dive)
show_location(f, dive);
show_utf8(f, dive->divemaster, " ","\n");
show_utf8(f, dive->buddy, " ","\n");
+ fprintf(f, " %d\n", dive->rating);
show_utf8(f, dive->notes, " ","\n");
}
@@ -202,16 +203,16 @@ static void save_cylinder_info(FILE *f, struct dive *dive)
if (!o2 && !volume && !start && !end)
return;
fprintf(f, " type.workingpressure, " workpressure='", "'");
if (description && *description)
fprintf(f, " description='%s'", description);
+ if (o2) {
+ fprintf(f, " o2='%u.%u%%'", FRACTION(o2, 10));
+ if (he)
+ fprintf(f, " he='%u.%u%%'", FRACTION(he, 10));
+ }
show_pressure(f, cylinder->start, " start='", "'");
show_pressure(f, cylinder->end, " end='", "'");
fprintf(f, " />\n");