Package: docbook-utils Version: 0.6.14-1 Severity: important Tags: patch Hello,
docbook2man escapes . and ' only at the beginning of a line : $_[0] =~ s/^\./\\\&\./; So if there are some spaces or tab before . or ', they are not escaped while they should be. That can break some manpages, without any warning on build. See attached the patch provided by Nicolas François. Regards, -- Simon Paillard -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (999, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-2-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages docbook-utils depends on: ii docbook-dsssl 1.79-4 modular DocBook DSSSL stylesheets, ii jadetex 3.13-7.1 generator of printable output from ii lynx 2.8.5-2sarge2.1 Text-mode WWW Browser ii perl 5.8.8-6.1 Larry Wall's Practical Extraction ii sgmlspl 1.03ii-31 SGMLS-based example Perl script fo ii sp 1.3.4-1.2.1-47 James Clark's SGML parsing tools Versions of packages docbook-utils recommends: ii docbook-xml 4.4-5 standard XML documentation system, -- no debconf information
--- docbook2man-spec.pl.bak 2006-11-19 19:50:12.000000000 +0100 +++ docbook2man-spec.pl.new 2006-11-23 00:14:28.000000000 +0100 @@ -1199,8 +1199,8 @@ $_[0] =~ s/\\/\\\\/g; # Escape dots and single quotes in column 1 - $_[0] =~ s/^\./\\\&\./; - $_[0] =~ s/^\'/\\\&\'/; + $_[0] =~ s/^[ \t]*\./\\\&\./; + $_[0] =~ s/^[ \t]*\'/\\\&\'/; # In non-'pre'-type elements: if(!$nocollapse_whitespace) {