diff options
author | Niels Thykier <niels@thykier.net> | 2015-06-15 09:08:09 +0200 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-06-15 09:09:56 +0200 |
commit | 160d2c57c09183c25803f2a8ae1461e4aaa8ce2a (patch) | |
tree | 53748149defc0df2d9263c8f8394b05177d0c2f1 /t | |
parent | 6bb9a3d64f5f9fbb0fbe5dcfc947baf407270ea5 (diff) | |
download | debhelper-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-x | t/size | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |