summaryrefslogtreecommitdiffstatshomepage
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
commit278fc067b32e722c7636d46927a6ef9c4a872cd5 (patch)
tree886223bf5469e3105353c3bcda8b233e9580c625 /mdoc_html.c
parenta8bf4b0fd555d5f2c02407d5e3f97a00d18c6296 (diff)
downloadmandoc-278fc067b32e722c7636d46927a6ef9c4a872cd5.tar.gz
mandoc-278fc067b32e722c7636d46927a6ef9c4a872cd5.tar.zst
mandoc-278fc067b32e722c7636d46927a6ef9c4a872cd5.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index c3b3f68b..67ac9b14 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.163 2011/04/04 22:38:26 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.164 2011/04/23 08:56:29 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);