Bug#717340: [PATCH] Remove tabs from Description, and handle lists

2013-12-22 Thread David Prévot
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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#717340: [PATCH] Remove tabs from Description, and handle lists

2013-12-22 Thread David Prévot
Closes: #717340
---
 bin/dh_phppear | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/dh_phppear b/bin/dh_phppear
index 7a3c7b5..257af94 100755
--- a/bin/dh_phppear
+++ b/bin/dh_phppear
@@ -119,9 +119,12 @@ 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/^\*/ */mg;
local($Text::Wrap::separator) = '${Newline}';
# Wrap and replace empty lines with a dot
$description = join('${Newline}.${Newline}', 
split('${Newline}${Newline}', wrap(, , $description)));
+   $description =~ s/\t+/ /g;
addsubstvar($package, phppear:description, $description);
addsubstvar($package, phppear:channel, 
_shell_exec('/usr/share/pkg-php-tools/scripts/phppkginfo -d channel .'));
}
-- 
1.8.5.2


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org