Author: manuel
Date: 2007-04-06 15:36:20 -0600 (Fri, 06 Apr 2007)
New Revision: 8022

Modified:
   branches/new-xsl/pdf/lfs-sections.xsl
Log:
Prevent ocasional blank pages at the end of a chapter.

Modified: branches/new-xsl/pdf/lfs-sections.xsl
===================================================================
--- branches/new-xsl/pdf/lfs-sections.xsl       2007-04-06 20:36:19 UTC (rev 
8021)
+++ branches/new-xsl/pdf/lfs-sections.xsl       2007-04-06 21:36:20 UTC (rev 
8022)
@@ -16,9 +16,9 @@
 
      <!-- Force sect1 onto a new page -->
   <xsl:attribute-set name="section.level1.properties">
-    <xsl:attribute name="break-after">
+    <xsl:attribute name="break-before">
       <xsl:choose>
-        <xsl:when test="not(position()=last())">
+        <xsl:when test="not(. = //*/sect1[1])">
           <xsl:text>page</xsl:text>
         </xsl:when>
         <xsl:otherwise>

-- 
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