diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 0df38027d..297adf07e 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3450,7 +3450,7 @@ sub read_a_line($) { # # Suppress leading whitespace in certain continuation lines # - s/^\s*// if $currentline && $currentline =~ /[,:]$/ && $options & CONFIG_CONTINUATION; + s/^\s*// if $currentline && $options & CONFIG_CONTINUATION && $currentline =~ /[,:]$/; # # If this is a continued line with a trailing comment, remove comment. Note that # the result will now end in '\'.