소스 검색

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 년 전
부모
커밋
e47e715e75
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pdf/lfs-sections.xsl

+ 2 - 2
pdf/lfs-sections.xsl

@@ -16,9 +16,9 @@
 
 
      <!-- Force sect1 onto a new page -->
      <!-- Force sect1 onto a new page -->
   <xsl:attribute-set name="section.level1.properties">
   <xsl:attribute-set name="section.level1.properties">
-    <xsl:attribute name="break-after">
+    <xsl:attribute name="break-before">
       <xsl:choose>
       <xsl:choose>
-        <xsl:when test="not(position()=last())">
+        <xsl:when test="not(. = //*/sect1[1])">
           <xsl:text>page</xsl:text>
           <xsl:text>page</xsl:text>
         </xsl:when>
         </xsl:when>
         <xsl:otherwise>
         <xsl:otherwise>