From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 6ab9bab5 for ; Tue, 3 Sep 2019 10:10:15 -0500 (EST) Date: Tue, 3 Sep 2019 10:10:15 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Format .Nd with more logically with rather than
; X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <862a95679ede600b@mandoc.bsd.lv> Log Message: ----------- Format .Nd with more logically with rather than
; after all, it is supposed to be a one-line description. For the case where .Nd generates flow content (which is very bad style but syntactically valid), rely on the new feature of html_close_paragraph() to close out the prematurely, effectively moving the flow content out of the .Nd for HTML presentation. For the final closing, also rely on the new html_close_paragraph() functionality, this time triggered by the subsequent block, which will typically be .Sh SYNOPSIS. Modified Files: -------------- mandoc: mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v retrieving revision 1.329 retrieving revision 1.330 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.329 -r1.330 --- mdoc_html.c +++ mdoc_html.c @@ -653,7 +653,6 @@ mdoc_nd_pre(MDOC_ARGS) { switch (n->type) { case ROFFT_BLOCK: - html_close_paragraph(h); return 1; case ROFFT_HEAD: return 0; @@ -663,8 +662,7 @@ mdoc_nd_pre(MDOC_ARGS) abort(); } print_text(h, "\\(em"); - /* Cannot use TAG_SPAN because it may contain blocks. */ - print_otag(h, TAG_DIV, "c", "Nd"); + print_otag(h, TAG_SPAN, "c", "Nd"); return 1; } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv