From: Bernie Innocenti Date: Wed, 13 Aug 2008 11:35:43 +0000 (+0200) Subject: Bugfix hurl handling of image links X-Git-Tag: v3.0~8^2~6 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fbc4d6639e75dd726fdcadc1129ae0900468e9d2;p=geekigeeki.git Bugfix hurl handling of image links --- diff --git a/geekigeeki.py b/geekigeeki.py index 287a945..8de46ab 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -360,12 +360,11 @@ class WikiFormatter: def _hurl_repl(self, word): m = link_re.match(word) name = m.group(1) - if m.group(2) is None: + descr = m.group(2) + if descr is None: descr = name elif img_re.match(m.group(2)): descr = '' - else: - descr = m.group(2) return link_tag(name, descr, 'wikilink')