[pkg-php-pear] Bug#717340: [PATCH] Remove tabs from Description, and handle lists

David Prévot taffit at debian.org
Sun Dec 22 13:25:34 UTC 2013


Closes: #717340
---
 bin/dh_phppear | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/dh_phppear b/bin/dh_phppear
index 7a3c7b5..f431d10 100755
--- a/bin/dh_phppear
+++ b/bin/dh_phppear
@@ -119,6 +119,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		$summary =~ s/\.$//;
 		addsubstvar($package, "phppear:summary", $summary);
 		my $description = _shell_exec('/usr/share/pkg-php-tools/scripts/phppkginfo -d description .');
+		$description =~ s/^\s*//mg;
+		$description =~ s/\s+/ /mg;
+		$description =~ s/^\*/ */mg;
 		local($Text::Wrap::separator) = '${Newline}';
 		# Wrap and replace empty lines with a dot
 		$description = join('${Newline}.${Newline}', split('${Newline}${Newline}', wrap("", "", $description)));
-- 
1.8.5.2



More information about the pkg-php-pear mailing list