From c866b82f35365136d52d3113517aa6d5627eded3 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sat, 20 Jan 2018 14:04:48 +0100 Subject: 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 --- core/plannernotes.c | 4 ++-- 1 file 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), "
 — %s (%s %.1fx%s/+%d%s@%.0f%s): \ - %.0f%s/%.0f%s/Δ:%+.0f%s", + snprintf(mingas, sizeof(mingas), "
 — %s (%s %.1fx%s/+%d%s@%.0f%s): " + "%.0f%s/%.0f%s/Δ:%+.0f%s", mingas_d_pressure > 0 ? "green" :"red", translate("gettextFromC", "Minimum gas"), translate("gettextFromC", "based on"), -- cgit v1.2.3-70-g09d2