Author: manuel
Date: 2007-04-07 04:18:19 -0600 (Sat, 07 Apr 2007)
New Revision: 8023

Modified:
   branches/new-xsl/pdf/lfs-mixed.xsl
Log:
Less vertical space in the Changelog.

Modified: branches/new-xsl/pdf/lfs-mixed.xsl
===================================================================
--- branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-06 21:36:20 UTC (rev 8022)
+++ branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-07 10:18:19 UTC (rev 8023)
@@ -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>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to