From: Michael Smith Date: Fri, 10 Mar 2006 12:13:03 +0000 (+0000) Subject: Funcsynopsisinfo must be handled as a verbatim. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f626caaa29f259bd5b628dade5821ad26a8efe9f;p=docbook-dsssl Funcsynopsisinfo must be handled as a verbatim. Problem:: Existing code was not preserving breaks and whitespace in Funcsynopsisinfo. Cause:: Lack of awareness that Funcsynopsisinfo is a verbatim environment. Fix:: Handle in Funcsynopsisinfo in the same way as other verbatims (that is, wrap in .nf/.fi requests. Additional problem: According to man(7) man page and existing man2/ pages, all parts of a funcsynopsis that are not args must be in bold. But because Funcsynopsisinfo is a verbatim, it needs different roff bold markup than other stuff. So wrapped it in ".ft B"/ft pair. (Perhaps it might make sense to wrap the whole funcsynopsis in ".ft B"/ft instead of trying to bold/unbold at the word level, as we are doing now. Or perhaps not.) Closes bug #1447121. Thanks to Joe Orton for reporting. --- diff --git a/xsl/manpages/block.xsl b/xsl/manpages/block.xsl index b1471f2ef..5e8b2197d 100644 --- a/xsl/manpages/block.xsl +++ b/xsl/manpages/block.xsl @@ -40,8 +40,9 @@ .sp - - + + @@ -59,10 +60,36 @@ .sp - .nf - - - .fi + + + + + + + + + + + + + + .\" bold on + .ft B + .nf + + + .fi + .\" bold off + .ft + + + + .nf + + + .fi + + diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index 656481b4f..4026ca5ca 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -16,9 +16,9 @@ | - - - + + + @@ -194,6 +194,12 @@ + + + + + + @@ -241,12 +247,6 @@ - - .PP - - - -