Browse Source

Small fix for when <screen> is inside <para>.

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

+ 3 - 0
lfs-pdf.xsl

@@ -26,6 +26,9 @@
   <xsl:include href="pdf/lfs-pagesetup.xsl"/>
   <xsl:include href="pdf/lfs-xref.xsl"/>
 
+    <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
+  <xsl:param name="book-type">lfs</xsl:param>
+
     <!-- Activating FOP-1 extensions. We use FOP-0.93 as the FO procesor. -->
   <xsl:param name="fop1.extensions" select="1"/>
 

+ 4 - 2
pdf/lfs-mixed.xsl

@@ -125,7 +125,8 @@
       <xsl:call-template name="simple.xlink">
         <xsl:with-param name="content">
           <xsl:choose>
-            <xsl:when test="ancestor::para and not(descendant::ulink)">
+            <xsl:when test="ancestor::para and not(ancestor::screen)
+                            and not(descendant::ulink)">
               <xsl:call-template name="hyphenate-url">
                 <xsl:with-param name="url">
                   <xsl:apply-templates/>
@@ -161,7 +162,8 @@
       <xsl:call-template name="simple.xlink">
         <xsl:with-param name="content">
           <xsl:choose>
-            <xsl:when test="ancestor::para and not(descendant::ulink)">
+            <xsl:when test="ancestor::para and not(ancestor::screen)
+                            and not(descendant::ulink)">
               <xsl:call-template name="hyphenate-url">
                 <xsl:with-param name="url">
                   <xsl:apply-templates/>