projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87adb64
)
Bugfix hurl handling of image links
author
Bernie Innocenti
<bernie@codewiz.org>
Wed, 13 Aug 2008 11:35:43 +0000
(13:35 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Wed, 13 Aug 2008 11:35:43 +0000
(13:35 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 287a945cf45a2e56e4d26ef2f0c58b12c5c24484..8de46ab91cbf4d2b14e4ce25753a0848545c311c 100755
(executable)
--- 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 = '<img border="0" src="' + descr + '" />'
- else:
- descr = m.group(2)
return link_tag(name, descr, 'wikilink')