-/* $Id: tbl_html.c,v 1.40 2022/04/14 16:43:44 schwarze Exp $ */
+/* $Id: tbl_html.c,v 1.41 2022/04/23 14:02:17 schwarze Exp $ */
/*
- * Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2014, 2015, 2017, 2018, 2021, 2022
+ * Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
*/
if (sp->pos != TBL_SPAN_DATA)
- return;
+ goto out;
/* Inhibit printing of spaces: we do padding ourselves. */
h->flags &= ~HTML_NONOSPACE;
+out:
if (sp->next == NULL) {
assert(h->tbl.cols);
free(h->tbl.cols);