From: Bernie Innocenti Date: Mon, 17 Aug 2009 19:20:57 +0000 (+0200) Subject: Fix maxwidth handling X-Git-Url: https://codewiz.org/gitweb?p=geekigeeki.git;a=commitdiff_plain;h=40429dac49b4e4cca5c3feb6189885d8d9f261c8;hp=2206012d676e2500b6ba5e11f46217654f6d61c1 Fix maxwidth handling --- 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