[dh-r] 34/43: Reformat the long description with leading spaces

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

chronitis-guest pushed a commit to branch master
in repository dh-r.

commit 5a35feac59795441163b6dc35b0a4d8c3f7de80a
Author: Gordon Ball <gordon at chronitis.net>
Date:   Thu Sep 15 11:11:09 2016 +0200

    Reformat the long description with leading spaces
---
 scripts/dh-make-R | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/dh-make-R b/scripts/dh-make-R
index fbf79f6..c18ec2f 100755
--- a/scripts/dh-make-R
+++ b/scripts/dh-make-R
@@ -56,6 +56,9 @@ if ($compiled) {
     say "W: Package SystemRequirements: '$desc->{SystemRequirements}'";
 }
 
+my $longdesc = $desc->{Description};
+$longdesc =~ s/^\s*/ /gm;
+
 my $homepage = "";
 if ($repo eq "CRAN") {
     $homepage = "https://cran.r-project.org/web/packages/$desc->{Package}/";
@@ -87,7 +90,7 @@ Depends: \${R:Depends}, \${shlibs:Depends}, \${misc:Depends}
 Recommends: \${R:Recommends}
 Suggests: \${R:Suggests}
 Description: $desc->{Title}
- $desc->{Description}
+$longdesc
 EOF
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dh-r.git



More information about the debian-science-commits mailing list