summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-06-15 09:08:09 +0200
committerNiels Thykier <niels@thykier.net>2015-06-15 09:09:56 +0200
commit160d2c57c09183c25803f2a8ae1461e4aaa8ce2a (patch)
tree53748149defc0df2d9263c8f8394b05177d0c2f1 /t
parent6bb9a3d64f5f9fbb0fbe5dcfc947baf407270ea5 (diff)
downloaddebhelper-160d2c57c09183c25803f2a8ae1461e4aaa8ce2a.tar.gz
t/size: Do not penalize empty lines
At worst it leads to removal of arbitrary empty lines to obey the line limit at the cost of readability. Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 't')
-rwxr-xr-xt/size2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/size b/t/size
index 77446ce1..813b2796 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*(?:\#.*)?$)/;
$lines++;
$maxlength=length($_) if length($_) > $maxlength;
}