mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
facaa3e0cd
commit
350f6aa2fd
1 changed files with 2 additions and 1 deletions
|
@ -776,7 +776,8 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
||||||
lastsetpoint = dp->setpoint;
|
lastsetpoint = dp->setpoint;
|
||||||
lastentered = dp->entered;
|
lastentered = dp->entered;
|
||||||
} while ((dp = nextdp) != NULL);
|
} 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->cns = 0;
|
||||||
dive->maxcns = 0;
|
dive->maxcns = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue