diff -Nru docbook-utils-0.6.14/debian/changelog docbook-utils-0.6.14/debian/changelog --- docbook-utils-0.6.14/debian/changelog 2012-09-12 11:48:00.000000000 +0200 +++ docbook-utils-0.6.14/debian/changelog 2014-08-10 12:41:48.000000000 +0200 @@ -1,3 +1,11 @@ +docbook-utils (0.6.14-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fixing generation of hyphen-used-as-minus-sign lintian tags (Closes: + #628751, #208967) + + -- Joseph Herlant Sun, 10 Aug 2014 12:12:30 +0200 + docbook-utils (0.6.14-3) unstable; urgency=medium * Redo patch for 212088, it breaks on some system. Closes: #685766 diff -Nru docbook-utils-0.6.14/debian/patches/hyphen-used-as-minus-sign.patch docbook-utils-0.6.14/debian/patches/hyphen-used-as-minus-sign.patch --- docbook-utils-0.6.14/debian/patches/hyphen-used-as-minus-sign.patch 1970-01-01 01:00:00.000000000 +0100 +++ docbook-utils-0.6.14/debian/patches/hyphen-used-as-minus-sign.patch 2014-08-10 12:24:51.000000000 +0200 @@ -0,0 +1,18 @@ +Description: Current version of docbook2man's hyphen rendering makes lintian + complain about "hyphen-used-as-minus-sign". This patch renders both `-' as `\-' + and `\-' as `\\\-'. +Author: Joseph Herlant +Last-Update: 2014-08-10 +--- a/helpers/docbook2man-spec.pl ++++ b/helpers/docbook2man-spec.pl +@@ -1211,6 +1211,10 @@ + # Escape backslashes + $_[0] =~ s/\\/\\\\/g; + ++ # Escape hyphens ++ $_[0] =~ s/\\\\-/\\-/g; ++ $_[0] =~ s/-/\\-/g; ++ + # Escape dots and single quotes in column 1 + $_[0] =~ s/^([ \t]*)\./$1\\\&\./; + $_[0] =~ s/^([ \t]*)\'/$1\\\&\'/; diff -Nru docbook-utils-0.6.14/debian/patches/series docbook-utils-0.6.14/debian/patches/series --- docbook-utils-0.6.14/debian/patches/series 2012-05-09 19:08:40.000000000 +0200 +++ docbook-utils-0.6.14/debian/patches/series 2014-08-10 12:13:54.000000000 +0200 @@ -4,3 +4,4 @@ bug_214982.patch bug_394511.patch bug_528334.patch +hyphen-used-as-minus-sign.patch