diff --git a/core/plannernotes.c b/core/plannernotes.c
index d5fedd4bc..8a1f85009 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -60,9 +60,9 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
}
snprintf(buf, sizeof(buf), translate("gettextFromC", "DISCLAIMER / WARNING: THIS IS A NEW IMPLEMENTATION OF THE %s "
- "ALGORITHM AND A DIVE PLANNER IMPLEMENTATION BASED ON THAT WHICH HAS "
- "RECEIVED ONLY A LIMITED AMOUNT OF TESTING. WE STRONGLY RECOMMEND NOT TO "
- "PLAN DIVES SIMPLY BASED ON THE RESULTS GIVEN HERE."), deco);
+ "ALGORITHM AND A DIVE PLANNER IMPLEMENTATION BASED ON THAT WHICH HAS "
+ "RECEIVED ONLY A LIMITED AMOUNT OF TESTING. WE STRONGLY RECOMMEND NOT TO "
+ "PLAN DIVES SIMPLY BASED ON THE RESULTS GIVEN HERE."), deco);
disclaimer = buf;
if (!dp) {
@@ -73,9 +73,9 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
if (error) {
snprintf(temp, sz_temp, "%s",
- translate("gettextFromC", "Decompression calculation aborted due to excessive time"));
+ translate("gettextFromC", "Decompression calculation aborted due to excessive time"));
snprintf(buffer, sz_buffer, "%s %s
",
- translate("gettextFromC", "Warning:"), temp);
+ translate("gettextFromC", "Warning:"), temp);
dive->notes = strdup(buffer);
free((void *)buffer);
@@ -87,50 +87,50 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
if (diveplan->surface_interval < 0) {
len += snprintf(buffer + len, sz_buffer - len, "
%s | ", - translate("gettextFromC", "depth")); + translate("gettextFromC", "depth")); if (plan_display_duration) len += snprintf(buffer + len, sz_buffer - len, "%s | ", - translate("gettextFromC", "duration")); + translate("gettextFromC", "duration")); if (plan_display_runtime) len += snprintf(buffer + len, sz_buffer - len, "%s | ", - translate("gettextFromC", "runtime")); + translate("gettextFromC", "runtime")); len += snprintf(buffer + len, sz_buffer - len, "%s | %s %s | ", gasname(&newgasmix), - temp); + len += snprintf(buffer + len, sz_buffer - len, "%s %s | ", + gasname(&newgasmix), temp); } else { - len += snprintf(buffer + len, sz_buffer - len, "%s | ", gasname(&newgasmix)); + len += snprintf(buffer + len, sz_buffer - len, "%s | ", + gasname(&newgasmix)); } lastprintsetpoint = nextdp->setpoint; lastprintgasmix = newgasmix; gaschange_after = false; } else if (gaschange_before) { - // If a new gas has been used for this segment, now is the time to show it + // If a new gas has been used for this segment, now is the time to show it if (dp->setpoint) { snprintf(temp, sz_temp, translate("gettextFromC", "(SP = %.1fbar)"), (double) dp->setpoint / 1000.0); - len += snprintf(buffer + len, sz_buffer - len, "%s %s | ", gasname(&gasmix), - temp); + len += snprintf(buffer + len, sz_buffer - len, "%s %s | ", + gasname(&gasmix), temp); } else { - len += snprintf(buffer + len, sz_buffer - len, "%s | ", gasname(&gasmix)); + len += snprintf(buffer + len, sz_buffer - len, "%s | ", + gasname(&gasmix)); } // Set variables so subsequent iterations can test against the last gas printed lastprintsetpoint = dp->setpoint; @@ -308,11 +309,10 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d snprintf(temp, sz_temp, translate("gettextFromC", "Switch gas to %s (SP = %.1fbar)"), gasname(&newgasmix), (double) nextdp->setpoint / 1000.0); else snprintf(temp, sz_temp, translate("gettextFromC", "Switch gas to %s"), gasname(&newgasmix)); - len += snprintf(buffer + len, sz_buffer - len, "%s
---|