indentation
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 9 Oct 2009 17:02:03 +0000 (13:02 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 9 Oct 2009 17:02:03 +0000 (13:02 -0400)
IkiWiki/Plugin/conditional.pm

index 7ead701f28a95b3e5286672534ebe47ed3d23c7d..bc7b8974d1049f2ee9f655399d64497478cb2d07 100644 (file)
@@ -30,10 +30,10 @@ sub preprocess_if (@) {
 
        my $result=0;
        if (! IkiWiki::yesno($params{all}) ||
-               # An optimisation to avoid needless looping over every page
-               # and adding of dependencies for simple uses of some of the
-               # tests.
-               $params{test} =~ /^([\s\!()]*((enabled|sourcepage|destpage|included)\([^)]*\)|(and|or))[\s\!()]*)+$/) {
+           # An optimisation to avoid needless looping over every page
+           # and adding of dependencies for simple uses of some of the
+           # tests.
+           $params{test} =~ /^([\s\!()]*((enabled|sourcepage|destpage|included)\([^)]*\)|(and|or))[\s\!()]*)+$/) {
                add_depends($params{page}, "($params{test}) and $params{page}");
                $result=pagespec_match($params{page}, $params{test},
                                location => $params{page},