# HG changeset patch # User Reimar Bauer # Date 1221558532 -7200 # Node ID 2a92ddf8a7c8f1a936e2f71944e2cdf6221204fc # Parent c633f1c988e397be1b3aa16d6a4f7fae841fcfaa Image._get_description: strip whitespae from image name diff -r c633f1c988e3 -r 2a92ddf8a7c8 data/plugin/macro/Image.py --- a/data/plugin/macro/Image.py Tue Sep 16 11:25:16 2008 +0200 +++ b/data/plugin/macro/Image.py Tue Sep 16 11:48:52 2008 +0200 @@ -73,7 +73,7 @@ for line in quotes: if line.startswith('[[') and line.endswith(']]'): img, alias = line[2:-2].split('|', 1) - if img == self.attachname: + if img.strip() == self.attachname: self.__description = alias.strip() break return self.__description