summaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-06-25 13:45:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-06-25 13:45:57 +0000
commite1b0237d058a55d8d44948a2d1990bded5a80480 (patch)
treef7e15d0b3a74742cac2996d96a93314da4276dcd /tbl_html.c
parent17ce74870dba4baa99844b39ca2f449d591b3fb5 (diff)
downloadmandoc-e1b0237d058a55d8d44948a2d1990bded5a80480.tar.gz
Do not write <colgroup> elements. Their only purpose is to enforce
author-specified column widths, which can harm responsive design and provide no real benefit: HTML rendering engines usually do just fine automatically selecting appropriate column widths.
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 38fd777b..d7328e55 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -79,23 +79,14 @@ html_tbl_sulen(const struct roffsu *su, void *arg)
static void
html_tblopen(struct html *h, const struct tbl_span *sp)
{
- struct tag *t;
- int ic;
-
if (h->tbl.cols == NULL) {
h->tbl.len = html_tbl_len;
h->tbl.slen = html_tbl_strlen;
h->tbl.sulen = html_tbl_sulen;
tblcalc(&h->tbl, sp, 0, 0);
}
-
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_tagq(h, t);
}
void