mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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>
This commit is contained in:
parent
9470be0a77
commit
192e2c7027
1 changed files with 6 additions and 4 deletions
|
@ -43,10 +43,12 @@ void writeMarkers(struct membuffer *b, const bool selected_only)
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max. depth:"));
|
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max. depth:"));
|
||||||
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
|
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
|
||||||
put_depth(b, dive->maxdepth, pre, post);
|
put_depth(b, dive->maxdepth, pre, post);
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Air temp.:"));
|
put_string(b, "<p> ");
|
||||||
put_HTML_airtemp(b, dive, pre, "</p>");
|
put_HTML_quoted(b, translate("gettextFromC", "Air temp.:"));
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Water temp.:"));
|
put_HTML_airtemp(b, dive, " ", "</p>");
|
||||||
put_HTML_watertemp(b, dive, pre, "</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:"));
|
snprintf(pre, sizeof(pre), "<p>%s <b>", translate("gettextFromC", "Location:"));
|
||||||
put_string(b, pre);
|
put_string(b, pre);
|
||||||
put_HTML_quoted(b, get_dive_location(dive));
|
put_HTML_quoted(b, get_dive_location(dive));
|
||||||
|
|
Loading…
Reference in a new issue