>>>>> Ivan Shmakov <oneing...@gmail.com> writes:

[...]

 > Apparently, the text inside of the <:, :> escape sequence is
 > insensitive to newlines, so these should either be made explicit by
 > the XSLT code, perhaps with something along the lines of:

[...]

 > Or `co-tagin' could be passed to the code above with an appended
 > TeX-code to honor the linebreaks within the escape.

        Like:

--- verbatim.xsl.~1~    2008-04-19 06:11:31.000000000 +0700
+++ verbatim.xsl        2009-05-17 12:14:26.000000000 +0700
@@ -205,7 +205,9 @@
     <!-- the listing content is internal -->
     <xsl:apply-templates select="." mode="internal">
       <xsl:with-param name="rnode" select="$rnode"/>
-      <xsl:with-param name="co-tagin" select="$co-tagin"/>
+      <xsl:with-param
+         name="co-tagin"
+         select="concat ($co-tagin, '\obeylines{}')"/>
       <xsl:with-param name="opt" select="$opt"/>
     </xsl:apply-templates>
   </xsl:otherwise>

        However, it also became apparent to me now that LaTeX ignores
        spaces within the escape.  Unfortunately, adding \obeyspaces{}
        to the above didn't help:

-         select="concat ($co-tagin, '\obeylines{}')"/>
+         select="concat ($co-tagin, '\obeylines{}\obeyspaces{}')"/>

        The result is still typeset like:

$ find /etc/ \
-type f \
\( -name \*tab -or -name \*conf \)

        instead of the intended:

$ find /etc/ \
    -type f \
    \( -name \*tab -or -name \*conf \)

        Any suggestions?

-- 
FSF associate member #7257



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to