The toc.pm plug-in currently renders empty 'a' tag elements. This seems to confuse at least Firefox, possibly others. The result is that the following text is rendered as an anchor (visible if you style 'a' elements in a different color). Here is a patch for toc.pm for producing non-empty 'a' elements. --- 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 (@) { #{{{ if ($tagname =~ /^h(\d+)$/i) { my $level=$1; my $anchor="index".++$anchors{$level}."h$level"; - $page.="$text"; + $page.="$text"; # 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 (@) { #{{{ "\n"; $p->handler(text => undef); }, "dtext"); + } + else { + $page.=$text; + } + }, "tagname, text"); + $p->handler(end => sub { + my $tagname=shift; + my $text=shift; + if ($tagname =~ /^h(\d+)$/i) { + $page.="$text"; } else { $page.=$text;ass='tabs'> summaryrefslogtreecommitdiff
path: root/tags/de/3c/20060621132350.587df16e.jonas@homebase.dk/sent
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/de/3c/20060621132350.587df16e.jonas@homebase.dk/sent
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/de/3c/20060621132350.587df16e.jonas@homebase.dk/sent')
-rw-r--r--tags/de/3c/20060621132350.587df16e.jonas@homebase.dk/sent0
1 files changed, 0 insertions, 0 deletions