[debhelper-devel] [debhelper] 02/03: t/size: Ignore empty lines when counting size of a tool
Niels Thykier
nthykier at moszumanska.debian.org
Sun Dec 21 21:35:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 93d8ba917f5bcb972cc1c791d4ba892277554fb3
Author: Niels Thykier <niels at thykier.net>
Date: Sun Nov 16 21:26:37 2014 +0100
t/size: Ignore empty lines when counting size of a tool
Signed-off-by: Niels Thykier <niels at thykier.net>
---
t/size | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/size b/t/size
index d8b9896..bf7847d 100755
--- a/t/size
+++ b/t/size
@@ -18,7 +18,7 @@ foreach my $file (@progs) {
while (<IN>) {
$cutting=1 if /^=/;
$cutting=0 if /^=cut/;
- next if $cutting || /^(=|\s*\#)/;
+ next if $cutting || /^(=|\s*\#)/ || /^\s*+$/;
$lines++;
$maxlength=length($_) if length($_) > $maxlength;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list