diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-06 03:57:43 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-06 03:57:43 +0000 |
commit | afa57f5c074ed297c29eb1030f1ec07b762780d9 (patch) | |
tree | 53d846bba9eac890b54394d3ff1a26f9b6694bbc | |
parent | 746f6fdffbea6a9f60dafd1e4efc2d1049e9d113 (diff) |
* Remove dups from the brokenlinks list.
-rw-r--r-- | IkiWiki/Plugin/brokenlinks.pm | 3 | ||||
-rw-r--r-- | debian/changelog | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/brokenlinks.pm b/IkiWiki/Plugin/brokenlinks.pm index 50bbe0d54..22590366b 100644 --- a/IkiWiki/Plugin/brokenlinks.pm +++ b/IkiWiki/Plugin/brokenlinks.pm @@ -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 diff --git a/debian/changelog b/debian/changelog index 12d3752e0..413d0e12e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |