浏览代码

Using standart list.item.spacing also in Changelog.
That choose was increasing global processing time in near a 50% (+20 segs in my system).

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8044 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Manuel Canales Esparcia 18 年之前
父节点
当前提交
8b9e2d367e
共有 1 个文件被更改,包括 4 次插入20 次删除
  1. 4 20
      pdf/lfs-mixed.xsl

+ 4 - 20
pdf/lfs-mixed.xsl

@@ -211,27 +211,11 @@
     <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
   </xsl:attribute-set>
 
-    <!-- What spacing do you want between list items?
-         No space in nested itemizedlist, like in the Changelog. -->
+    <!-- What spacing do you want between list items? -->
   <xsl:attribute-set name="list.item.spacing">
-    <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 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-set>
 
     <!-- Properties that apply to each list-block generated by itemizedlist. -->