]> granicus.if.org Git - docbook-dsssl/commitdiff
Ensure better postcript/PDF output from "man -Tps" by doing a
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 07:15:05 +0000 (07:15 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 07:15:05 +0000 (07:15 +0000)
"negative" vertical space with  ".sp -1n" everywhere instead of
just ".sp -1".

xsl/manpages/info.xsl

index 0dd257726d83f9c0599d048e9586b201bf4c5d2d..6afa65a7d1ae65296e11088ef8f036c8345d7285 100644 (file)
   </xsl:template>
 
   <xsl:template name="publisher.attribution">
-    <xsl:text>&#10;.sp -1&#10;</xsl:text>
+    <xsl:text>&#10;.sp -1n&#10;</xsl:text>
     <xsl:text>.IP&#10;</xsl:text>
     <xsl:call-template name="gentext">
       <xsl:with-param name="key" select="'Publisher'"/>
       <!-- * If we have no *blurb or contrib, but this is an Author or -->
       <!-- * Editor, then render the corresponding localized gentext -->
       <xsl:when test="self::author">
-        <xsl:text>&#10;.sp -1&#10;</xsl:text>
+        <xsl:text>&#10;.sp -1n&#10;</xsl:text>
         <xsl:text>.IP&#10;</xsl:text>
         <xsl:call-template name="gentext">
           <xsl:with-param name="key" select="'Author'"/>
         <xsl:text>.&#10;</xsl:text>
       </xsl:when>
       <xsl:when test="self::editor">
-        <xsl:text>&#10;.sp -1&#10;</xsl:text>
+        <xsl:text>&#10;.sp -1n&#10;</xsl:text>
         <xsl:text>.IP&#10;</xsl:text>
         <xsl:call-template name="gentext">
           <xsl:with-param name="key" select="'Editor'"/>
       <xsl:when test="self::othercredit">
         <xsl:choose>
           <xsl:when test="@class and @class != 'other'">
-            <xsl:text>&#10;.sp -1&#10;</xsl:text>
+            <xsl:text>&#10;.sp -1n&#10;</xsl:text>
             <xsl:text>.IP&#10;</xsl:text>
             <xsl:call-template name="gentext">
               <xsl:with-param name="key" select="@class"/>
   </xsl:template>
 
   <xsl:template match="personblurb|authorblurb" mode="authorsect">
-    <xsl:text>&#10;.sp -1&#10;</xsl:text>
+    <xsl:text>&#10;.sp -1n&#10;</xsl:text>
     <xsl:text>.IP&#10;</xsl:text>
     <!-- * yeah, it's possible for a *blurb to have a "title" -->
     <xsl:apply-templates select="title"/>
   <xsl:template match="contrib" mode="authorsect">
     <!-- * We treat Contrib the same as Personblurb/Authorblurb -->
     <!-- * except that we don't need to check for a title. -->
-    <xsl:text>&#10;.sp -1&#10;</xsl:text>
+    <xsl:text>&#10;.sp -1n&#10;</xsl:text>
     <xsl:text>&#10;.IP&#10;</xsl:text>
     <xsl:apply-templates/>
   </xsl:template>