]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Make the toc plugin use html-compatible anchors. This is necessary since
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 8 Jul 2007 16:57:05 +0000 (16:57 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 8 Jul 2007 16:57:05 +0000 (16:57 +0000)
  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

IkiWiki/Plugin/toc.pm
debian/changelog

index 797bfc6bd526b7489e98046dd2ce752d4f85a0cd..bc62f71d6858cb302ef23549e5f63fe9152957e9 100644 (file)
@@ -47,7 +47,7 @@ sub format (@) { #{{{
                if ($tagname =~ /^h(\d+)$/i) {
                        my $level=$1;
                        my $anchor="index".++$anchors{$level}."h$level";
                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.
        
                        # Take the first header level seen as the topmost level,
                        # even if there are higher levels seen later on.
index d946f12e1cae787eb4d6c8321f62b918ec96dc88..f8b04172a65d1964ddd0ed3daedafd7ed9a0af5b 100644 (file)
@@ -1,3 +1,12 @@
+ikiwiki (2.4) UNRELEASED; urgency=low
+
+  * 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
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 08 Jul 2007 12:54:55 -0400
+
 ikiwiki (2.3) unstable; urgency=low
 
   * Corrected a typo in an error handler in the image plugin.
 ikiwiki (2.3) unstable; urgency=low
 
   * Corrected a typo in an error handler in the image plugin.