diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-06-25 13:45:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-06-25 13:45:57 +0000 |
commit | e1b0237d058a55d8d44948a2d1990bded5a80480 (patch) | |
tree | f7e15d0b3a74742cac2996d96a93314da4276dcd /tbl_html.c | |
parent | 17ce74870dba4baa99844b39ca2f449d591b3fb5 (diff) | |
download | mandoc-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.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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 |