X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/9bae3755848c9f02f931bced41cceb888dcbdb98..26bfed13ac23faf7108f861447f3a1bc774c674f:/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 88516780e..f756bf8f5 100644 --- a/doc/bugs/Problem_with_toc.pm_plug-in.mdwn +++ b/doc/bugs/Problem_with_toc.pm_plug-in.mdwn @@ -2,6 +2,11 @@ The toc.pm plug-in currently renders empty 'a' tag elements. This seems to confu 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]] + --- 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 (@) { #{{{ @@ -29,4 +34,4 @@ Here is a patch for toc.pm for producing non-empty 'a' elements. + $page.="$text"; } else { - $page.=$text; \ No newline at end of file + $page.=$text;