]> granicus.if.org Git - docbook-dsssl/commitdiff
Adjusted spacing around K&R-formatted Funcdef and Paramdef output
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 6 Apr 2006 14:39:59 +0000 (14:39 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 6 Apr 2006 14:39:59 +0000 (14:39 +0000)
such that it can more easily be discerned where one ends and the
other begins. Closes #1213264.

xsl/fo/synop.xsl

index 07b66290f4ab201e31c8313d8fb6f2be3dff8b54..74c4f5b464e390ec2bc02c0299db47b7bfc50dfb 100644 (file)
 </xsl:template>
 
 <xsl:template match="funcprototype">
-  <fo:block font-family="{$monospace.font.family}">
+  <fo:block font-family="{$monospace.font.family}"
+          space-before.minimum="0.8em"
+          space-before.optimum="1em"
+          space-before.maximum="1.2em">
     <xsl:apply-templates/>
     <xsl:if test="$funcsynopsis.style='kr'">
+      <fo:block
+          space-before.minimum="0.8em"
+          space-before.optimum="1em"
+          space-before.maximum="1.2em">
       <xsl:apply-templates select="./paramdef" mode="kr-funcsynopsis-mode"/>
+      </fo:block>
     </xsl:if>
   </fo:block>
 </xsl:template>