summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-17 17:54:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-17 17:54:45 +0000
commit0051e5a1d4917fc98592d104bb751a4b0d5d9fd0 (patch)
treeba1b44107ac1f87995de3c93f8ff84d92f18c1ca /mdoc_html.c
parent8f6135a7ad22bd59bffe447c62c75f571fb67076 (diff)
downloadmandoc-0051e5a1d4917fc98592d104bb751a4b0d5d9fd0.tar.gz
Delete pointless width calculation for SYNOPSIS .Nm block heads.
Just let HTML <table> do its work of selecting the needed width. <Anton dot Lindqvist at gmail dot com> reported that the manually calculated width was insufficient in some manual pages.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 46d6d94c..1956f0e0 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -585,9 +585,6 @@ mdoc_nd_pre(MDOC_ARGS)
static int
mdoc_nm_pre(MDOC_ARGS)
{
- struct tag *t;
- int len;
-
switch (n->type) {
case ROFFT_HEAD:
print_otag(h, TAG_TD, "");
@@ -601,22 +598,8 @@ mdoc_nm_pre(MDOC_ARGS)
default:
break;
}
-
synopsis_pre(h, n);
print_otag(h, TAG_TABLE, "c", "Nm");
-
- for (len = 0, n = n->head->child; n; n = n->next)
- if (n->type == ROFFT_TEXT)
- len += html_strlen(n->string);
-
- if (len == 0 && meta->name != NULL)
- len = html_strlen(meta->name);
-
- t = print_otag(h, TAG_COLGROUP, "");
- /* Increase width to make even bold text fit. */
- print_otag(h, TAG_COL, "shw", len + 2);
- print_otag(h, TAG_COL, "");
- print_tagq(h, t);
print_otag(h, TAG_TR, "");
return 1;
}