Эх сурвалжийг харах

Less vertical space in the Changelog.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8023 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 жил өмнө
parent
commit
5611d5f16a
1 өөрчлөгдсөн 22 нэмэгдсэн , 5 устгасан
  1. 22 5
      pdf/lfs-mixed.xsl

+ 22 - 5
pdf/lfs-mixed.xsl

@@ -55,7 +55,7 @@
     <!-- para:
            Skip empty "Home page" in packages.xml.
            Allow forced line breaks inside paragraphs emulating literallayout.
-           Removed vertical space in vaiablelist. -->
+           Removed vertical space in variablelist. -->
     <!-- The original template is in {docbook-xsl}/fo/block.xsl -->
  <xsl:template match="para">
     <xsl:choose>
@@ -116,11 +116,27 @@
     <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
   </xsl:attribute-set>
 
-    <!-- What spacing do you want between list items? -->
+    <!-- What spacing do you want between list items?
+         No space in nested itemizedlist, like in the Changelog. -->
   <xsl:attribute-set name="list.item.spacing">
-    <xsl:attribute name="space-before.optimum">0.4em</xsl:attribute>
-    <xsl:attribute name="space-before.minimum">0.2em</xsl:attribute>
-    <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">
+      <xsl:choose>
+        <xsl:when test=". = //listitem/itemizedlist/listitem">0em</xsl:when>
+        <xsl:otherwise>0.4em</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
+    <xsl:attribute name="space-before.minimum">
+      <xsl:choose>
+        <xsl:when test=". = //listitem/itemizedlist/listitem">0em</xsl:when>
+        <xsl:otherwise>0.2em</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
+    <xsl:attribute name="space-before.maximum">
+      <xsl:choose>
+        <xsl:when test=". = //listitem/itemizedlist/listitem">0.2em</xsl:when>
+        <xsl:otherwise>0.6em</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
   </xsl:attribute-set>
 
     <!-- Properties that apply to each list-block generated by itemizedlist. -->
@@ -248,6 +264,7 @@
     </xsl:choose>
   </xsl:template>
 
+    <!-- Self-made calculation template. -->
   <xsl:template name="calculation">
     <xsl:param name="scope"/>
     <xsl:param name="total">0</xsl:param>