فهرست منبع

Added support to can force page breaks.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4049 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 21 سال پیش
والد
کامیت
25eacc67c1
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      stylesheets/pdf/lfs-mixed.xsl

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

@@ -4,6 +4,14 @@
                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
                 version="1.0">
 
+  
+    <!-- This is a hack and isn't correct semantically. The beginpage tags must
+      be placed in the XML source only to render the final PDF output, and must
+      be removed after.-->
+  <xsl:template match="beginpage">
+    <fo:block break-after="page"/>
+  </xsl:template>
+
     <!-- Split URLs -->
   <xsl:template name="hyphenate-url">
     <xsl:param name="url" select="''"/>