summaryrefslogtreecommitdiffstats
path: root/mdoc_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 /mdoc_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 'mdoc_html.c')
-rw-r--r--mdoc_html.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index f9f6b84b..2f2097b5 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -750,39 +750,19 @@ static int
mdoc_bl_pre(MDOC_ARGS)
{
char cattr[28];
- struct tag *t;
struct mdoc_bl *bl;
- size_t i;
enum htmltag elemtype;
- bl = &n->norm->Bl;
-
switch (n->type) {
case ROFFT_BODY:
return 1;
-
case ROFFT_HEAD:
- if (bl->type != LIST_column || bl->ncols == 0)
- return 0;
-
- /*
- * For each column, print out the <COL> tag with our
- * suggested width. The last column gets min-width, as
- * in terminal mode it auto-sizes to the width of the
- * screen and we want to preserve that behaviour.
- */
-
- t = print_otag(h, TAG_COLGROUP, "");
- for (i = 0; i < bl->ncols - 1; i++)
- print_otag(h, TAG_COL, "sw+w", bl->cols[i]);
- print_otag(h, TAG_COL, "swW", bl->cols[i]);
- print_tagq(h, t);
return 0;
-
default:
break;
}
+ bl = &n->norm->Bl;
switch (bl->type) {
case LIST_bullet:
elemtype = TAG_UL;