* mdocml: Make the `Nm' -Thtml attribute be min-width instead of width.
@ 2011-04-23 8:56 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-23 8:56 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-23 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-23 8:56 mdocml: Make the `Nm' -Thtml attribute be min-width instead of width kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).