From 45e2c23e030a6ae60c79c1b97a7a906290f26abe Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 8 Jul 2007 16:57:05 +0000 Subject: [PATCH] * 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 --- IkiWiki/Plugin/toc.pm | 2 +- debian/changelog | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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"; + $page.="$text"; # Take the first header level seen as the topmost level, # even if there are higher levels seen later on. diff --git a/debian/changelog b/debian/changelog index d946f12e1..f8b04172a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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. -- 2.26.2