Your message dated Mon, 29 Jun 2009 12:02:06 +0000
with message-id <[email protected]>
and subject line Bug#528964: fixed in dblatex 0.2.11-1
has caused the Debian Bug report #528964,
regarding `userinput' reverts the effect of a surrounding `screen'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
528964: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528964
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dblatex
Version: 0.2.9-3

        Consider the following example:

<?xml version="1.0" encoding="us-ascii" standalone="no"?>
<!DOCTYPE article
          PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
          "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
<article xml:lang="en" lang="en">
  <screen>
<prompt>$ </prompt><userinput>find /etc/ \
    -type f \
    \( -name \*tab -or -name \*conf \)</userinput>
<computeroutput>/etc/sysctl.conf
/etc/fstab
/etc/mke2fs.conf
&hellip;</computeroutput>
<prompt>$ </prompt>
  </screen>
</article>

        Here, I wanted to represent a kind of ``screenshot'', while
        decorating certain parts of it (in particular, the part which is
        up to user to type in) with a suitable mark-up, namely:
        `userinput'.

        Much to my surprise, wrapping the text into an `userinput'
        element made it insensitive to newlines.  The fragment gets
        transformed to the following LaTeX code:

\begin{lstlisting}[firstnumber=1,escapeinside={<:}{:>},]
$ <:\textbf{find /etc/ \textbackslash{}
    -{}type f \textbackslash{}
    \textbackslash{}( -{}name \textbackslash{}*tab -{}or -{}name 
\textbackslash{}*conf \textbackslash{})}:>
/etc/sysctl.conf
/etc/fstab
/etc/mke2fs.conf
<:\ldots{}:>
$ 
  \end{lstlisting}

        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:

--cut: inlined.xsl --
 <xsl:template match="userinput" mode="latex.programlisting">
   <xsl:param name="co-tagin" select="'&lt;:'"/>
   <xsl:param name="rnode" select="/"/>
 
   <xsl:value-of select="$co-tagin"/>
-  <xsl:call-template name="inline.boldseq"/>
+  <xsl:variable name="fragment">
+    <xsl:call-template name="inline.boldseq" />
+  </xsl:variable>
+  <xsl:call-template name="string-replace">
+    <xsl:with-param name="string" select="$fragment" />
+    <xsl:with-param name="from" select="&#10;" />
+    <xsl:with-param name="to" select="\\&#10;" />
+  </xsl:call-template>
   <xsl:value-of select="$co.tagout"/>
 </xsl:template>
--cut: inlined.xsl --

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

-- 
FSF associate member #7257



--- End Message ---
--- Begin Message ---
Source: dblatex
Source-Version: 0.2.11-1

We believe that the bug you reported is fixed in the latest version of
dblatex, which is due to be installed in the Debian FTP archive:

dblatex_0.2.11-1.diff.gz
  to pool/main/d/dblatex/dblatex_0.2.11-1.diff.gz
dblatex_0.2.11-1.dsc
  to pool/main/d/dblatex/dblatex_0.2.11-1.dsc
dblatex_0.2.11-1_all.deb
  to pool/main/d/dblatex/dblatex_0.2.11-1_all.deb
dblatex_0.2.11.orig.tar.gz
  to pool/main/d/dblatex/dblatex_0.2.11.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Hoenen <[email protected]> (supplier of updated dblatex 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 27 Jun 2009 10:01:26 +0200
Source: dblatex
Binary: dblatex
Architecture: source all
Version: 0.2.11-1
Distribution: unstable
Urgency: low
Maintainer: Andreas Hoenen <[email protected]>
Changed-By: Andreas Hoenen <[email protected]>
Description: 
 dblatex    - Produces DVI, PostScript, PDF documents from DocBook sources
Closes: 528849 528964
Changes: 
 dblatex (0.2.11-1) unstable; urgency=low
 .
   * New upstream release
   * New upstream release improves <refnamediv> rendering.  Thanks to Ivan
     Shmakov for reporting.  Closes: #528849
   * 20_preserve_linebreaks_in_screen_userinput.dpatch:
     Preserve the verbatim nature of <userinput> elements even as children of
     a <screen> element, that is preserve linebreaks.  Thanks to Ivan Shmakov
     for reporting.  Closes: #528964
   * Debian specific files are now kept in upstream repository and included in
     upstream package:
     + Post failure analysis code (errorhandler.py)
     + Wrapper script (/usr/bin/dblatex)
     Adaptions:
     + 10_analyze_failure.dpatch: drop
     + 10_dblatex_wrapper_script.dpatch: adapt wrapper included in upstream
       release to Debian file locations
     + debian/rules: install both files
   * 10_TEXINPUTS_env_precedence.dpatch: remove as integrated upstream.
   * 10_xetex_fontspec_encoder.dpatch: remove as integrated upstream.
   * debian/rules: Remove cleanup of superfluous file test1.py as applied
     upstream.
   * Standards-Version: 3.8.2 (no changes needed)
Checksums-Sha1: 
 ff3bd03b60fbb35382d219ddb264488e10491411 1061 dblatex_0.2.11-1.dsc
 606bb239b2cf7034ac6797764dc137f2efded899 1388239 dblatex_0.2.11.orig.tar.gz
 1b33cce154fd5e04e466f4e5ca85bfb884f7ab93 15441 dblatex_0.2.11-1.diff.gz
 03c859627a54f9ef1fd7f4f1a5432d1dda78fab3 1279354 dblatex_0.2.11-1_all.deb
Checksums-Sha256: 
 b7dc5b0f746bb9922bd3b469ec21f18007e760f537f9d7842316ac48a0c32110 1061 
dblatex_0.2.11-1.dsc
 edd7e36798cc22259dca21d80a98c853f34c5d7a4fb6a6c0b2dce7921e8edb0d 1388239 
dblatex_0.2.11.orig.tar.gz
 6b7432d2521b65a50418f2a931f4994bb182ddbb7f708344dcc7503b95cc7a02 15441 
dblatex_0.2.11-1.diff.gz
 37c94a4d8f22701d2382f055ef95fd39cc38a0ffa1654f6576d43af3e8a2547f 1279354 
dblatex_0.2.11-1_all.deb
Files: 
 508472222ae9284de167033449ec3017 1061 text optional dblatex_0.2.11-1.dsc
 d54573bf07dd79c30b290439a8233327 1388239 text optional 
dblatex_0.2.11.orig.tar.gz
 1d5112a9f8c55a807ffeddd41e483f49 15441 text optional dblatex_0.2.11-1.diff.gz
 3e52f8f78e2931956bdf6e552fd536a4 1279354 text optional dblatex_0.2.11-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpIqj8ACgkQ3DVS6DbnVgT37wCfcYGXenU3Nf3DEwOJ32t/V1yj
qx0AoKFyzzzp60+PfhJxgJ16OffVEXEy
=28PM
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to