aboutsummaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-02-19 17:41:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-02-19 17:41:20 +0000
commit696a89ee8dc1ea68171fab6ec063cf92a52af841 (patch)
tree7133f7b9b1f83857466c94b9686d3c7b28765220 /tbl_html.c
parentef7476572c9a18c0cb4d5dbaf3a81f1628419abb (diff)
downloadsrc-696a89ee8dc1ea68171fab6ec063cf92a52af841.tar.gz
src-696a89ee8dc1ea68171fab6ec063cf92a52af841.zip
Import mandoc 1.4.1rc2vendor/mandoc/1.4.1rc2
Notes
Notes: svn path=/vendor/mdocml/dist/; revision=313956 svn path=/vendor/mdocml/1.4.1rc2/; revision=313957; tag=vendor/mandoc/1.4.1rc2
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 962d900e3682..4dff29370a51 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_html.c,v 1.19 2017/01/17 01:47:51 schwarze Exp $ */
+/* $Id: tbl_html.c,v 1.20 2017/02/05 18:15:39 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -50,6 +50,7 @@ html_tbl_strlen(const char *p, void *arg)
static void
html_tblopen(struct html *h, const struct tbl_span *sp)
{
+ struct tag *t;
int ic;
if (h->tbl.cols == NULL) {
@@ -61,10 +62,10 @@ html_tblopen(struct html *h, const struct tbl_span *sp)
assert(NULL == h->tblt);
h->tblt = print_otag(h, TAG_TABLE, "c", "tbl");
+ t = print_otag(h, TAG_COLGROUP, "");
for (ic = 0; ic < sp->opts->cols; ic++)
print_otag(h, TAG_COL, "shw", h->tbl.cols[ic].width);
-
- print_otag(h, TAG_TBODY, "");
+ print_tagq(h, t);
}
void