diff options
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c index c33cbb0dd..46bcec0a1 100644 --- a/save-xml.c +++ b/save-xml.c @@ -127,6 +127,7 @@ static void save_cylinder_info(FILE *f, struct dive *dive) for (i = 0; i < MAX_CYLINDERS; i++) { cylinder_t *cylinder = dive->cylinder+i; int volume = cylinder->type.size.mliter; + const char *description = cylinder->type.description; int o2 = cylinder->gasmix.o2.permille; int he = cylinder->gasmix.he.permille; @@ -141,6 +142,8 @@ static void save_cylinder_info(FILE *f, struct dive *dive) } if (volume) fprintf(f, " size='%u.%03u l'", FRACTION(volume, 1000)); + if (description) + fprintf(f, " name='%s'", description); fprintf(f, " />\n"); } } |