forked from extern/shorewall_code
Suppress trailing whitespace.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
eb7a21030d
commit
63a2a32b4b
@ -2230,13 +2230,20 @@ sub read_a_line($) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
# Now remove concatinated comments
|
# Now remove concatinated comments if asked
|
||||||
#
|
#
|
||||||
$currentline =~ s/\s*#.*$// if $options & STRIP_COMMENTS;
|
$currentline =~ s/\s*#.*$// if $options & STRIP_COMMENTS;
|
||||||
#
|
|
||||||
# Ignore ( concatenated ) Blank Lines after comments are removed.
|
if ( $options & SUPPRESS_WHITESPACE ) {
|
||||||
#
|
#
|
||||||
$currentline = '', $currentlinenumber = 0, next if $currentline =~ /^\s*$/ && ( $options & SUPPRESS_WHITESPACE );
|
# Ignore (concatinated) blank lines
|
||||||
|
#
|
||||||
|
$currentline = '', $currentlinenumber = 0, next if $currentline =~ /^\s*$/;
|
||||||
|
#
|
||||||
|
# Eliminate trailing whitespace
|
||||||
|
#
|
||||||
|
$currentline =~ s/\s*$//;
|
||||||
|
}
|
||||||
#
|
#
|
||||||
# Line not blank -- Handle any first-entry message/capabilities check
|
# Line not blank -- Handle any first-entry message/capabilities check
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user