Package: docbook-xsl
Version: 1.68.1.dfsg.1-0.2
Severity: normal
Tags: patch

Hi,

when translating from docbook to troff format, linebreaks within the
<screen> environment are not preserved, as mandated by the DocBook
specification:

"This element is displayed “verbatim”; whitespace and linebreaks within
this element are significant."
<http://www.docbook.org/tdg5/en/html/screen.html>

The attached patch fixes this.

Cheers, Til

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages docbook-xsl depends on:
ii  xml-core                      0.09-0.1   XML infrastructure and XML catalog

Versions of packages docbook-xsl recommends:
ii  apache2-mpm-prefork [ 2.0.55-4           traditional model for Apache2
ii  docbook-xml           4.4-5              standard XML documentation system,
ii  firefox [www-browser] 1.5.dfsg+1.5.0.4-1 lightweight web browser based on M
ii  konqueror [www-browse 4:3.5.3-2          KDE's advanced file manager, web b
ii  lynx [www-browser]    2.8.5-2sarge1      Text-mode WWW Browser
ii  mozilla-browser [www- 2:1.7.12-1.2       The Mozilla Internet application s
ii  w3m [www-browser]     0.5.1-4            WWW browsable pager with excellent

-- no debconf information
--- docbook.xsl.orig    2006-06-26 14:53:58.388416815 +0200
+++ docbook.xsl 2006-06-26 14:59:36.562950923 +0200
@@ -318,11 +318,17 @@
 
 <xsl:template match="refentry/refentryinfo"></xsl:template>
 
-<xsl:template match="informalexample|screen">
+<xsl:template match="informalexample">
   <xsl:text>&#10;.IP&#10;</xsl:text>
   <xsl:apply-templates/>
 </xsl:template>
 
+<xsl:template match="screen">
+  <xsl:text>&#10;.IP&#10;.nf&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>&#10;.fi&#10;</xsl:text>
+</xsl:template>
+
 <xsl:template match="filename|replaceable|varname">
   <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text>
 </xsl:template>

Reply via email to