projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2206012
)
Fix maxwidth handling
author
Bernie Innocenti
<bernie@codewiz.org>
Mon, 17 Aug 2009 19:20:57 +0000
(21:20 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Mon, 17 Aug 2009 19:20:57 +0000
(21:20 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index f549d0ff2359b47596abd228e480303ebd1b764f..4b95368aaa6759eb60c0009bfa6fd913308883e2 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-662,10
+662,10
@@
class Page:
for filename in page_list(self._filename(), file_re):
if image_re.match(filename):
for filename in page_list(self._filename(), file_re):
if image_re.match(filename):
- maxwidth = config_get(image_maxwidth)
+ maxwidth = config_get(image_maxwidth
, ''
)
if maxwidth:
if maxwidth:
- maxwidth
_arg
= ' | maxwidth=' + str(maxwidth)
- out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth
_arg
+ ' | class=thumbleft}}\n'
+ maxwidth = ' | maxwidth=' + str(maxwidth)
+ out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n'
else:
out += ' * [[' + self.page_name + '/' + filename + ']]\n'
return out
else:
out += ' * [[' + self.page_name + '/' + filename + ']]\n'
return out