scancpan: trim the abstract
authorFrancois Perrad <fperrad@gmail.com>
Wed, 10 Oct 2018 06:46:10 +0000 (08:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 10 Oct 2018 07:05:45 +0000 (09:05 +0200)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/scancpan

index 072404944182598c2be6f6f7793d6f4199906cd9..20ab27caa152125b0ab1622fcd5f7c0b68f86692 100755 (executable)
@@ -688,6 +688,7 @@ while (my ($distname, $dist) = each %dist) {
     my $brname = brname( $fsname );
     mkdir $dirname unless -d $dirname;
     if ($need_target{$distname} && ($force || !-f $cfgname)) {
+        $dist->{abstract} =~ s|\s+$||;
         my $abstract = wrap( q{}, qq{\t  }, $dist->{abstract} );
         my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}};
         say qq{write ${cfgname}} unless $quiet;