]> granicus.if.org Git - docbook-dsssl/commitdiff
embed custom macro definitions in man pages, plus wrap synopsis in
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 26 Feb 2008 10:03:27 +0000 (10:03 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 26 Feb 2008 10:03:27 +0000 (10:03 +0000)
code font

xsl/manpages/docbook.xsl
xsl/manpages/synop.xsl

index 3e3939c84a4723eda02d5b01c484d311f61211f2..03b2e4578c0a98104da11d970e37a3d5631c99ac 100644 (file)
         <xsl:with-param name="extra3"  select="$refentry.metadata/manual"/>
       </xsl:call-template>
       <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+      <!-- * (re)define some macros -->
+      <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+      <xsl:call-template name="define.macros"/>
+      <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
       <!-- * Set default hyphenation, justification, indentation, and -->
       <!-- * line-breaking -->
       <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
index 6a8719683ffdc849e6424363b81d5cee3b290c6c..bd53c5540fa762ef9e7375d3ee95982578ec8e2f 100644 (file)
   <!-- * (because funcdef is always followed by one open paren char) -->
   <xsl:value-of select="string-length (normalize-space ($funcprototype.string.value)) + 1"/>
   <xsl:text>&#10;</xsl:text>
+  <xsl:call-template name="verbatim-block-start"/>
   <xsl:text>.</xsl:text>
   <xsl:value-of select="$man.font.funcprototype"/>
   <xsl:text> </xsl:text>
     <xsl:apply-templates select="paramdef" mode="kr-paramdef-list"/>
     <xsl:text>.RE&#10;</xsl:text>
   </xsl:if>
+  <xsl:call-template name="verbatim-block-end"/>
 </xsl:template>
 
 <xsl:template match="funcdef">