summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-08 16:57:05 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-08 16:57:05 +0000
commit45e2c23e030a6ae60c79c1b97a7a906290f26abe (patch)
tree890faa96683e24e7b80c520fe5ce591ee1b41db2 /IkiWiki/Plugin
parentc01030c14742db9f87de62ceb7c77dc156c7380f (diff)
* Make the toc plugin use html-compatible anchors. This is necessary since
most web sites serve ikiwiki xhtml files as text/html and mozilla browsers get confused. So it's best for ikiwiki to follow the compatability recommendations in appendix C of the XHTML spec. Closes: #432045
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/toc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/toc.pm b/IkiWiki/Plugin/toc.pm
index 797bfc6bd..bc62f71d6 100644
--- a/IkiWiki/Plugin/toc.pm
+++ b/IkiWiki/Plugin/toc.pm
@@ -47,7 +47,7 @@ sub format (@) { #{{{
if ($tagname =~ /^h(\d+)$/i) {
my $level=$1;
my $anchor="index".++$anchors{$level}."h$level";
- $page.="$text<a name=\"$anchor\" />";
+ $page.="$text<a name=\"$anchor\"></a>";
# Take the first header level seen as the topmost level,
# even if there are higher levels seen later on.