]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Remove dups from the brokenlinks list.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 6 May 2006 03:57:43 +0000 (03:57 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 6 May 2006 03:57:43 +0000 (03:57 +0000)
IkiWiki/Plugin/brokenlinks.pm
debian/changelog

index 50bbe0d54499ac165263e08f0f2fda36b6dc9fff..22590366b641b19ad8e3a34dfc1e1bacf236e93d 100644 (file)
@@ -35,7 +35,8 @@ sub preprocess (@) { #{{{
        }
        
        return "There are no broken links!" unless @broken;
-       return "<ul>\n".join("\n", map { "<li>$_</li>" } sort @broken)."</ul>\n";
+       my %seen;
+       return "<ul>\n".join("\n", map { "<li>$_</li>" } grep { ! $seen{$_}++ } sort @broken)."</ul>\n";
 } # }}}
 
 1
index 12d3752e0ea6ef1cff8670b5467633f2b3d70db4..413d0e12e38086a2c67e6ff916ed9aec1f17eca1 100644 (file)
@@ -1,3 +1,9 @@
+ikiwiki (1.2) UNRELEASED; urgency=low
+
+  * Remove dups from the brokenlinks list.
+
+ -- Joey Hess <joeyh@debian.org>  Fri,  5 May 2006 23:56:32 -0400
+
 ikiwiki (1.1) unstable; urgency=low
 
   * Rename inlinepage to depends, so that it can be used to refer to more