Fixed bug in URL formatting in Headline News

svn: r11725
This commit is contained in:
Doug Blank 2009-01-25 20:51:13 +00:00
parent 4f32dea6bc
commit 6a26dce0b1

View File

@ -989,7 +989,7 @@ class HeadlineNewsGramplet(Gramplet):
matches = pattern.findall(text)
for (g1, g2) in matches:
text = text.replace("[[%s|%s]]" % (g1, g2),
("""<A HREF="%s%s">%s</A>""" %
("""<A HREF="%s">%s</A>""" %
(self.wiki(g1), self.nice_title(g2))))
### Internal wiki URL:
pattern = re.compile('\[\[(.*?)\]\]')