httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject [patch] preserve spaces
Date Fri, 18 Jan 2002 04:36:42 GMT
any reason for this leading space stripping? If we have a vh block with 
many nested blocks it's nice to preserve the indentation, no? Unless 
this was done for a special reason, this patch keeps the config block as is.

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.44
diff -u -r1.44 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm	14 Jan 2002 06:44:10 -0000	
1.44
+++ Apache-Test/lib/Apache/TestConfigPerl.pm	18 Jan 2002 04:32:23 -0000
@@ -232,7 +232,6 @@
              my $end = "</$1>";
              while (<$fh>) {
                  chomp;
-                s/^\s+//;
                  $self->replace;
                  $self->postamble($_);
                  last if m:^\Q$end:;


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Mime
View raw message