- 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%%' />\n", FRACTION(n2, 10));
+ fprintf(f, " <cylinder");
+ if (o2) {
+ fprintf(f, " o2='%u.%u%%'", FRACTION(o2, 10));
+ if (he)
+ fprintf(f, " he='%u.%u%%'", FRACTION(he, 10));
+ }
+ if (volume) {
+ fprintf(f, " size='%u.%03u l'", FRACTION(volume, 1000));
+ if (pressure)
+ fprintf(f, " workpressure='%u.%03u bar'", FRACTION(pressure, 1000));
+ }
+ fprintf(f, " />\n");