summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-23 08:56:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-23 08:56:29 +0000
commit6a1758268848a25b610e9698cc2774e9d5ca6dde (patch)
treede478b0f171c9a699d5ea5a2945a14e7d785aaa7 /mdoc_html.c
parent60f32354c113d9af86f70f30e024d6e1eca66e63 (diff)
downloadmandoc-6a1758268848a25b610e9698cc2774e9d5ca6dde.tar.gz
Make the `Nm' -Thtml attribute be min-width instead of width. This is a
quick fix for, say, rc.d(8) in OpenBSD, which has nested macros on the `Nm' SYNOPSIS line that were skipped over by the length calculator. This should [maybe?] be a recursive length check, but still it'd need to be a min-width to accomodate for (say) `Qq' and the like printing excess characters post-length-calculation.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 249c3832..92edcaa2 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -737,7 +737,7 @@ mdoc_nm_pre(MDOC_ARGS)
len = strlen(m->name);
SCALE_HS_INIT(&su, (double)len);
- bufcat_su(h, "width", &su);
+ bufcat_su(h, "min-width", &su);
PAIR_STYLE_INIT(&tag, h);
print_otag(h, TAG_COL, 1, &tag);
print_otag(h, TAG_COL, 0, NULL);