changeset 275:2a92ddf8a7c8

Image._get_description: strip whitespae from image name
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 16 Sep 2008 11:48:52 +0200
parents c633f1c988e3
children e3c509f99aad
files data/plugin/macro/Image.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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