X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=utils%2Fprepare-configfile.pl;h=dc68632b82c2006033cc10bd767f16afa69b96c8;hp=59a76913937121f23da83e6d4481f2aca4604c32;hb=34a6a841e529579e2be4457ea0d4cb1befbc840a;hpb=003dccb47d33fc19ffa039c802a66c1021d6c95b diff --git a/utils/prepare-configfile.pl b/utils/prepare-configfile.pl index 59a76913..dc68632b 100755 --- a/utils/prepare-configfile.pl +++ b/utils/prepare-configfile.pl @@ -51,6 +51,13 @@ sub main() { s/^\s+/ /; $unfold_mode = 0; } else { + if ( $hit_option ) { + # processing a continuation of a @@ line + if ( /^\s*$/ ) { # blank line + $hit_option = 0; + next; + } + } s/^/# /; } if ($unfolding_enabled and @@ -62,8 +69,6 @@ sub main() { # XXX: someone should figure out what this stuff # is supposed to do (and if it really does that). s/^# #/####/ if /^# #{12,}/; - s/^.*$// if $hit_option; - $hit_option = 0; s/^\n//; s/^#\s*-{20,}//; s/ *$//;