From bf31dc01a4ed8d5837be3580b2e40f066e232ef4 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Thu, 12 Feb 2015 20:46:14 +0200 Subject: [PATCH] Fix error on HTML worldmap exports. As HTML worldmap export produces wrong HTML in languages that contains apostrophe in air/water temperature fields like italian. Translated strings need to be HTML quoted. Signed-off-by: Gehad elrobey Signed-off-by: Dirk Hohndel --- worldmap-save.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/worldmap-save.c b/worldmap-save.c index a7e9d82c2..c28a52d5f 100644 --- a/worldmap-save.c +++ b/worldmap-save.c @@ -43,10 +43,12 @@ void writeMarkers(struct membuffer *b, const bool selected_only) snprintf(pre, sizeof(pre), "

%s ", translate("gettextFromC", "Max. depth:")); snprintf(post, sizeof(post), " %s

", translate("gettextFromC", "m")); put_depth(b, dive->maxdepth, pre, post); - snprintf(pre, sizeof(pre), "

%s ", translate("gettextFromC", "Air temp.:")); - put_HTML_airtemp(b, dive, pre, "

"); - snprintf(pre, sizeof(pre), "

%s ", translate("gettextFromC", "Water temp.:")); - put_HTML_watertemp(b, dive, pre, "

"); + put_string(b, "

"); + put_HTML_quoted(b, translate("gettextFromC", "Air temp.:")); + put_HTML_airtemp(b, dive, " ", "

"); + put_string(b, "

"); + put_HTML_quoted(b, translate("gettextFromC", "Water temp.:")); + put_HTML_watertemp(b, dive, " ", "

"); snprintf(pre, sizeof(pre), "

%s ", translate("gettextFromC", "Location:")); put_string(b, pre); put_HTML_quoted(b, dive->location);