From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p3N8uUFO012478 for ; Sat, 23 Apr 2011 04:56:30 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p3N8uTpi009019; Sat, 23 Apr 2011 04:56:29 -0400 (EDT) Date: Sat, 23 Apr 2011 04:56:29 -0400 (EDT) Message-Id: <201104230856.p3N8uTpi009019@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make the `Nm' -Thtml attribute be min-width instead of width. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v retrieving revision 1.163 retrieving revision 1.164 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.163 -r1.164 --- mdoc_html.c +++ 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); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv