]> granicus.if.org Git - docbook-dsssl/commitdiff
use .BI handling in K&R funsynopsis output for manpages, just as
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 18 Feb 2008 03:31:15 +0000 (03:31 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 18 Feb 2008 03:31:15 +0000 (03:31 +0000)
we do already of ANSI output

xsl/tools/xsl/build/html2roff.xsl

index 6fd04806c114c74a9183d0df10b6bb1e607e1183..7c40481f48d4b3f77bf60719c99eef4b34fb8471 100644 (file)
     <!-- * wrap all content in these cells in no-fill sections, to -->
     <!-- * prevent groff from adding undesirable line breaks -->
     <xsl:element name="text">.nf&#10;</xsl:element>
+    <xsl:element name="text">.</xsl:element>
+    <xsl:element name="xsl:value-of">
+      <xsl:attribute name="select">$man.font.funcprototype</xsl:attribute>
+    </xsl:element>
+    <!-- * The following quotation mark (and the one further below) are -->
+    <!-- * needed to properly delimit the parts of the Funcprototype that -->
+    <!-- * should be rendered in the prevailing font (either Bold or Roman) -->
+    <!-- * from Parameter output that needs to be alternately rendered in -->
+    <!-- * italic. -->
+    <xsl:element name="text"> "</xsl:element>
     <xsl:if test="not($horizontal-adjust = 0)">
       <xsl:element name="text">\h'-<xsl:value-of select="$horizontal-adjust"/>'</xsl:element>
     </xsl:if>
     <xsl:copy>
       <xsl:apply-templates select="@* | node()"/>
     </xsl:copy>
+    <xsl:element name="text">"</xsl:element>
     <xsl:element name="text">&#10;.fi</xsl:element>
     <xsl:choose>
       <xsl:when test="not($is-closing-cell = 0)">