Browse Source

Fix a pdf rendering issue

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9623 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 14 years ago
parent
commit
a7f0b27405
2 changed files with 5 additions and 1 deletions
  1. 2 1
      chapter07/site.xml
  2. 3 0
      stylesheets/lfs-xsl/pdf/lfs-mixed.xsl

+ 2 - 1
chapter07/site.xml

@@ -29,7 +29,8 @@
   will enable selective running of bootscripts.  Other options are described
   will enable selective running of bootscripts.  Other options are described
   in the file comments.  The default version of the file is as follows:</para>
   in the file comments.  The default version of the file is as follows:</para>
 
 
-  <screen>&site;</screen>
+  <!-- Use role to fix a pdf generation problem -->
+  <screen role="auto">&site;</screen>
 
 
 </sect1>
 </sect1>
 
 

+ 3 - 0
stylesheets/lfs-xsl/pdf/lfs-mixed.xsl

@@ -108,6 +108,9 @@ $Date$
           <xsl:otherwise>
           <xsl:otherwise>
             <xsl:choose>
             <xsl:choose>
               <xsl:when test="ancestor::appendix">auto</xsl:when>
               <xsl:when test="ancestor::appendix">auto</xsl:when>
+              <!-- Modified by Bruce Dubbs.  Allow user to specify 
+              automatic screen formatting to split across pages. -->
+              <xsl:when test="@role='auto'">auto</xsl:when>
               <xsl:otherwise>always</xsl:otherwise>
               <xsl:otherwise>always</xsl:otherwise>
             </xsl:choose>
             </xsl:choose>
           </xsl:otherwise>
           </xsl:otherwise>