X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=6b08c95111977282169a6cef3a10bbe5384d02b7;hb=0640af873bcce6db0119bac5f0fe29e89cd6f04b;hp=ed55c022d4bf971e1d10802cf38c5399830ea98d;hpb=854bd0269c05adc56caf9667fd68f676520a2941;p=ext%2Fsubsurface.git
diff --git a/save-xml.c b/save-xml.c
index ed55c02..6b08c95 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -97,6 +97,12 @@ static void quote(FILE *f, const char *text)
case '&':
escape = "&";
break;
+ case '\'':
+ escape = "'";
+ break;
+ case '\"':
+ escape = """;
+ break;
}
fwrite(text, (p - text - 1), 1, f);
if (!escape)
@@ -183,6 +189,7 @@ static void save_overview(FILE *f, struct dive *dive)
show_utf8(f, dive->divemaster, " ","\n");
show_utf8(f, dive->buddy, " ","\n");
show_utf8(f, dive->notes, " ","\n");
+ show_utf8(f, dive->suit, " ","\n");
}
static void save_cylinder_info(FILE *f, struct dive *dive)