Don't treat lines with just whitespace as continations
authorJamie Cameron <jcameron@webmin.com>
Thu, 22 Oct 2009 16:36:52 +0000 (09:36 -0700)
committerJamie Cameron <jcameron@webmin.com>
Thu, 22 Oct 2009 16:36:52 +0000 (09:36 -0700)
postfix/postfix-lib.pl

index 7dd666d..98fbe76 100755 (executable)
@@ -119,7 +119,7 @@ my ($begin_flag, $end_flag);
 foreach my $l (@$lref) {
        # changes made to this loop by Dan Hartman of Rae Internet /
        # Message Partners for multi-line parsing 2007-06-04
-       if ($begin_flag == 1 && $l =~ /^(\s+[^#].+)/) {
+       if ($begin_flag == 1 && $l =~ /\S/ && $l =~ /^(\s+[^#].+)/) {
                # non-comment continuation line, and replace tabs with spaces
                $out .= $1;
                $out =~ s/^\s+/ /;