X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a4b3300fde7a9e5695debcd4ee90cf173ef372d1..ad296f90c3b99bb5e033f769c44e5653f518f264:/doc/bugs/Problem_with_toc.pm_plug-in.mdwn diff --git a/doc/bugs/Problem_with_toc.pm_plug-in.mdwn b/doc/bugs/Problem_with_toc.pm_plug-in.mdwn index f756bf8f5..6be5f89b5 100644 --- a/doc/bugs/Problem_with_toc.pm_plug-in.mdwn +++ b/doc/bugs/Problem_with_toc.pm_plug-in.mdwn @@ -5,11 +5,11 @@ Here is a patch for toc.pm for producing non-empty 'a' elements. > Thanks for the patch, but I already fixed this in 2.4 using a different > approach. I think your patch is slightly broken, an anchor tag isn't > really meant to enclose all the html it anchors to, but just be stuck in -> front of it. --[[Joey]] [[tag done]] +> front of it. --[[Joey]] [[!tag done]] --- IkiWiki/Plugin/toc.pm.orig Thu Jun 7 11:53:53 2007 +++ IkiWiki/Plugin/toc.pm Thu Jun 7 13:00:00 2007 - @@ -47,7 +47,7 @@ sub format (@) { #{{{ + @@ -47,7 +47,7 @@ sub format (@) { if ($tagname =~ /^h(\d+)$/i) { my $level=$1; my $anchor="index".++$anchors{$level}."h$level"; @@ -18,7 +18,7 @@ Here is a patch for toc.pm for producing non-empty 'a' elements. # Take the first header level seen as the topmost level, # even if there are higher levels seen later on. - @@ -90,6 +90,16 @@ sub format (@) { #{{{ + @@ -90,6 +90,16 @@ sub format (@) { "\n"; $p->handler(text => undef); }, "dtext");