From 278fc067b32e722c7636d46927a6ef9c4a872cd5 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 23 Apr 2011 08:56:29 +0000 Subject: 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. --- mdoc_html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdoc_html.c') 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 * @@ -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); -- cgit v1.2.3