浏览代码

Fix a pdf rendering issue

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9623 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 14 年之前
父节点
当前提交
a7f0b27405
共有 2 个文件被更改,包括 5 次插入1 次删除
  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
   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>
 

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

@@ -108,6 +108,9 @@ $Date$
           <xsl:otherwise>
             <xsl:choose>
               <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:choose>
           </xsl:otherwise>