#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_fix_420153_filename_whitespace_handling.dpatch by ## Daniel Leidert (dale) ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Peter Eisentraut reported a regression in the whitespace handling of ## DP: refentrytitle content during filename creation: ## DP: http://bugs.debian.org/420153. The problem is, that upstream first ## DP: replaces all spaces (but not linebreaks btw) with underlines and then ## DP: it tries to normalize the result. This means, that a linebreak with ## DP: additional whitespaces results in manpage names like 'foo_ ____bar.9'. ## DP: So what we basically do in this patch is, that we first normalize the ## DP: refentrytitle and then replace any spaces left with underlines. @DPATCH@ --- a/xslt/man/manpage.xsl +++ b/xslt/man/manpage.xsl @@ -30,7 +30,7 @@ - + --- a/xslt/man/refentry.xsl +++ b/xslt/man/refentry.xsl @@ -38,7 +38,11 @@ - + + + + +