changeset 318:a6d2d972cc2c

teyt_x_arnica.get_image_alias: allow whitespace after image name in itemlist
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 17 Dec 2008 21:02:07 +0100
parents dc2fc15e9b7f
children daa964f86828
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Dec 17 20:37:37 2008 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Wed Dec 17 21:02:07 2008 +0100
@@ -217,6 +217,7 @@
         @param image: image as key for corresponding data
         @param selected_images: ordered list of selected images
         """
+        img = selected_images[0]
         title = ""
         if self.album:
             title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.arnica_image),
@@ -300,7 +301,7 @@
         for line in quotes:
             if line.startswith('[[') and line.endswith(']]'):
                 img, alias = line[2:-2].split('|', 1)
-                image_alias[img.strip()] = (self.formatter.text(alias.strip()), counter, img)
+                image_alias[img.strip()] = (self.formatter.text(alias.strip()), counter, img.strip())
                 counter += 1
         return image_alias