]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/calendar.pm
fix folding
[ikiwiki.git] / IkiWiki / Plugin / calendar.pm
index 536dbc075e1ce03473d41d96103d0266b384c170..a4a54d2c8845284746d9c3190bd3791c3e1f2af6 100644 (file)
@@ -32,7 +32,7 @@ sub import { #{{{
        hook(type => "preprocess", id => "calendar", call => \&preprocess);
 } #}}}
 
-sub is_leap_year (@) { #{{
+sub is_leap_year (@) { #{{{
        my %params=@_;
        return ($params{year} % 4 == 0 && (($params{year} % 100 != 0) || $params{year} % 400 == 0));
 } #}}}
@@ -197,9 +197,9 @@ EOF
         add_depends($params{page}, join(" or ", @list));
 
        return $calendar;
-}
+} #}}}
 
-sub format_year (@) {
+sub format_year (@) { #{{{
        my %params=@_;
 
        my $pagespec = $params{pages};
@@ -300,9 +300,9 @@ EOF
 EOF
 
        return $calendar;
-}
+} #}}}
 
-sub preprocess (@) {
+sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages} = "*"            unless defined $params{pages};
        $params{type}  = "month"        unless defined $params{type};
@@ -364,6 +364,6 @@ sub preprocess (@) {
        }
 
        return "\n<div class=\"calendar\">$calendar</div><!-- calendar -->\n";
-}
+} #}}
 
 1