From 40429dac49b4e4cca5c3feb6189885d8d9f261c8 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 17 Aug 2009 21:20:57 +0200 Subject: [PATCH] Fix maxwidth handling --- geekigeeki.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index f549d0f..4b95368 100755 --- 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): - maxwidth = config_get(image_maxwidth) + maxwidth = config_get(image_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 -- 2.25.1