Browse Source

Prevent ocasional blank pages at the end of a chapter.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8022 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 years ago
parent
commit
e47e715e75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pdf/lfs-sections.xsl

+ 2 - 2
pdf/lfs-sections.xsl

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