summaryrefslogtreecommitdiffstats
path: root/worldmap-save.c
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-02-12 20:46:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-15 05:56:50 -0800
commit192e2c7027c651ecd260a76e7847fa2a21cc6229 (patch)
treea0ddd3c09e6748a7e1db63590447715ee5de792b /worldmap-save.c
parent9470be0a77ead60a95103eb7155904b68b638543 (diff)
downloadsubsurface-192e2c7027c651ecd260a76e7847fa2a21cc6229.tar.gz
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 <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'worldmap-save.c')
-rw-r--r--worldmap-save.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/worldmap-save.c b/worldmap-save.c
index 22bfe583e..25c5ee33f 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), "<p>%s ", translate("gettextFromC", "Max. depth:"));
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
put_depth(b, dive->maxdepth, pre, post);
- snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Air temp.:"));
- put_HTML_airtemp(b, dive, pre, "</p>");
- snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Water temp.:"));
- put_HTML_watertemp(b, dive, pre, "</p>");
+ put_string(b, "<p> ");
+ put_HTML_quoted(b, translate("gettextFromC", "Air temp.:"));
+ put_HTML_airtemp(b, dive, " ", "</p>");
+ put_string(b, "<p> ");
+ put_HTML_quoted(b, translate("gettextFromC", "Water temp.:"));
+ put_HTML_watertemp(b, dive, " ", "</p>");
snprintf(pre, sizeof(pre), "<p>%s <b>", translate("gettextFromC", "Location:"));
put_string(b, pre);
put_HTML_quoted(b, get_dive_location(dive));