summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-01-20 14:04:48 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2018-01-21 09:56:35 +0100
commitc866b82f35365136d52d3113517aa6d5627eded3 (patch)
treefeb0f5d74df5607039df29e62efea0caab52d8a0 /core
parent81e9b230ca40e4c713c209f81c3a35faeb62bb26 (diff)
downloadsubsurface-c866b82f35365136d52d3113517aa6d5627eded3.tar.gz
Planner notes min gas: Remove incorrect line wrap inside printf string
With old code the tabs at the start of the second line were incorrectly added to the string. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core')
-rw-r--r--core/plannernotes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index d324b7a01..078604774 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -495,8 +495,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
mingas_depth = get_depth_units(lastbottomdp->depth.mm, NULL, &depth_unit);
/* Print it to results */
if (cyl->start.mbar > lastbottomdp->minimum_gas.mbar) {
- snprintf(mingas, sizeof(mingas), "<br>&nbsp;&mdash; <span style='color: %s;'>%s</span> (%s %.1fx%s/+%d%s@%.0f%s): \
- %.0f%s/%.0f%s<span style='color: %s;'>/&Delta;:%+.0f%s</span>",
+ snprintf(mingas, sizeof(mingas), "<br>&nbsp;&mdash; <span style='color: %s;'>%s</span> (%s %.1fx%s/+%d%s@%.0f%s): "
+ "%.0f%s/%.0f%s<span style='color: %s;'>/&Delta;:%+.0f%s</span>",
mingas_d_pressure > 0 ? "green" :"red",
translate("gettextFromC", "Minimum gas"),
translate("gettextFromC", "based on"),