From d89cf361a0011b8f08c37bcdf89768e098781eec Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 Jun 2014 11:25:49 -0700 Subject: Planner: add a few more line breaks in the html notes This looks much better now. Signed-off-by: Dirk Hohndel --- planner.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/planner.c b/planner.c index 9bb741b6a..4df222d55 100644 --- a/planner.c +++ b/planner.c @@ -524,7 +524,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool "RECEIVED ONLY A LIMITED AMOUNT OF TESTING. WE STRONGLY RECOMMEND NOT TO " "PLAN DIVES SIMPLY BASED ON THE RESULTS GIVEN HERE."); len = snprintf(buffer, sizeof(buffer), - translate("gettextFromC", "%s
Subsurface dive plan\nbased on GFlow = %d and GFhigh = %d

"), + translate("gettextFromC", "%s
Subsurface dive plan
based on GFlow = %d and GFhigh = %d

"), disclaimer, diveplan->gflow, diveplan->gfhigh); if (!plan_verbatim) { len += snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "")); @@ -610,7 +610,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool lastdepth = dp->depth; } while ((dp = dp->next) != NULL); len = strlen(buffer); - snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "
depth

Gas consumption:\n")); + snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "
Gas consumption:
")); for (gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) { double volume; const char *unit; @@ -625,9 +625,9 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool * This only works if we have working pressure for the cylinder * 10bar is a made up number - but it seemed silly to pretend you could breathe cylinder down to 0 */ if (cyl->end.mbar < 10000) - warning = translate("gettextFromC", "WARNING: this is more gas than available in the specified cylinder!"); + warning = translate("gettextFromC", "WARNING: this is more gas than available in the specified cylinder!
"); } - snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "%.0f%s of %s%s\n"), volume, unit, gasname(&cyl->gasmix), warning); + snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "%.0f%s of %s%s
"), volume, unit, gasname(&cyl->gasmix), warning); } dp = diveplan->dp; while (dp) { @@ -639,7 +639,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool double depth_value = get_depth_units(dp->depth, &decimals, &depth_unit); len = strlen(buffer); snprintf(buffer + len, sizeof(buffer) - len, - translate("gettextFromC", "Warning: high pO2 value %.2f at %d:%02u with gas %s at depth %.*f %s"), + translate("gettextFromC", "Warning: high pO2 value %.2f at %d:%02u with gas %s at depth %.*f %s
"), pO2 / 1000.0, FRACTION(dp->time, 60), gasname(&dp->gasmix), depth_value, decimals, depth_unit); } } -- cgit v1.2.3-70-g09d2