Package: ikiwiki
Version: 2.3
Severity: minor
Tags: patch

There is a minimal example at
http://www.eev.e-technik.tu-darmstadt.de/~nmartensen/
that shows what I mean. Tested with Iceweasel and Epiphany from etch.


The fix is simple:

diff --git a/toc.pm b/toc.pm
index 797bfc6..bc62f71 100644
--- a/toc.pm
+++ b/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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to