Browse files

html fix for un

  • Loading branch information...
1 parent 9b3fbd7 commit 781e5fa50e96c73993e6928f8942f2b92f0f8818 @hunterlang hunterlang committed May 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/DDG/Goodie/UN.pm
View
4 lib/DDG/Goodie/UN.pm
@@ -8,10 +8,12 @@ use constant WPHREF => "http://en.wikipedia.org/wiki/List_of_UN_numbers_%04d_to_
triggers start => 'un';
+zci answer_type => 'united_nations';
+
handle remainder => sub {
my $num = shift or return;
my %un = get_un($num) or return;
- return sprintf qq(%s (<a href="%s">UN Number %04d</a>)), $un{description}, wphref($num), $num;
+ return (sprintf qq(%s (UN Number %04d)), $un{description}, $num), html => sprintf qq(%s (<a href="%s">UN Number %04d</a>)), $un{description}, wphref($num), $num;
};
# Wikipedia attribution per CC-BY-SA

0 comments on commit 781e5fa

Please sign in to comment.