]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
my bad; wrong way around
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>
Mon, 7 Dec 2009 06:05:35 +0000 (01:05 -0500)
committerJoey Hess <joey@kitenet.net>
Mon, 7 Dec 2009 06:05:35 +0000 (01:05 -0500)
doc/todo/toc_plugin:_set_a_header_ceiling___40__opposite_of_levels__61____41__.mdwn

index 3183756602bf38cc2fa49dea82f5948dda8c6f5a..2d90772db816297b7ef8d4f7a07331c64c4d19f7 100644 (file)
@@ -5,16 +5,17 @@ Currently, the levels=X parameter lets you tweak how deep it will go for small h
 > This change to toc.pm should do it. --[[KathrynAndersen]]
 
        56,57c56,57
-       <       my $startlevel=($params{startlevel} ? $params{startlevel} : 0);
-       <       my $curlevel=$startlevel-1;
+       <       my $curlevel;
+       <       my $startlevel=0;
        ---
-       >       my $curlevel;
-       >       my $startlevel=0;
-       70d69
-       <                       # unless we're given startlevel as a parameter
-       75,79d73
-       <                       elsif (defined $params{startlevel}
-       <                              and $level < $params{startlevel})
-       <                       {
-       <                           return;
-       <                       }
+       >       my $startlevel=($params{startlevel} ? $params{startlevel} : 0);
+       >       my $curlevel=$startlevel-1;
+       69a70
+       >                       # unless we're given startlevel as a parameter
+       73a75,79
+       >                       elsif (defined $params{startlevel}
+       >                              and $level < $params{startlevel})
+       >                       {
+       >                           return;
+       >                       }
+