Hi,
Ingo Schwarze wrote on Mon, Jan 09, 2017 at 01:35:59PM +0100:
> Anton Lindqvist wrote on Mon, Jan 09, 2017 at 09:02:37AM +0100:
>> The following paragraph from the SHA1(3) man-page looks odd in its HTML
>> representation:
>>
>> $ sed -n 214p /usr/src/lib/libcrypto/man/SHA1.3
>> .Pq Fa len No bytes at Fa data .
>>
>> The No macro causes "bytes at" to be wrapped inside a code-tag and not
>> be rendered as unformatted text.
> Wait, that's an outright bug in the mandoc(1) HTML formatter: [...]
Fixed in OpenBSD-current, on bsd.lv, and on man.openbsd.org
with the commit below.
Thanks for the report,
Ingo
Log Message:
-----------
The .No macro is not supposed to produce fixed-width font, it is not
the same as .Li, so don't use <code>.
Bug reported by <Anton dot Lindqvist at gmail dot com> on tech@.
Modified Files:
--------------
mdocml:
mdoc_html.c
Revision Data
-------------
Index: mdoc_html.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_html.c,v
retrieving revision 1.241
retrieving revision 1.242
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.241 -r1.242
--- mdoc_html.c
+++ mdoc_html.c
@@ -1849,7 +1849,7 @@ mdoc_no_pre(MDOC_ARGS)
struct htmlpair tag;
PAIR_CLASS_INIT(&tag, "none");
- print_otag(h, TAG_CODE, 1, &tag);
+ print_otag(h, TAG_SPAN, 1, &tag);
return 1;
}