diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-11-17 11:13:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-06 09:35:07 -0800 |
commit | 0a65fe500b35b5a2e53bc5a3b173cb9493986f8f (patch) | |
tree | 6551e065fb21ecb206c3474a33ada90c77178a45 | |
parent | 965b67847fc91c2fb542a569a821ae584e6ef219 (diff) | |
download | subsurface-0a65fe500b35b5a2e53bc5a3b173cb9493986f8f.tar.gz |
Only close html tags if they were opened before
The runtime html table is printed only if printing
a verbatim diveplan is disabled. So the closing tags
should be printed only in that case.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | planner.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -776,7 +776,8 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool lastsetpoint = dp->setpoint; lastentered = dp->entered; } while ((dp = nextdp) != NULL); - len += snprintf(buffer + len, sz_buffer - len, "</tbody></table></div>"); + if (!plan_verbatim) + len += snprintf(buffer + len, sz_buffer - len, "</tbody></table></div>"); dive->cns = 0; dive->maxcns = 0; |