changeset 330:3f6de5cba911

text_x_arnica: get_image_alias checks also for '|' in line.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 19 Jan 2009 23:17:39 +0100
parents cc052e263d84
children f7f6b4d67c01
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Mon Jan 19 23:03:11 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Mon Jan 19 23:17:39 2009 +0100
@@ -301,7 +301,7 @@
         image_alias = {}
         counter = 0
         for line in quotes:
-            if line.startswith('[[') and line.endswith(']]'):
+            if line.startswith('[[') and line.endswith(']]') and '|' in line:
                 img, alias = line[2:-2].split('|', 1)
                 # don't count an image more than once and verify that it is an image
                 if wikiutil.isPicture(img.strip()) and img.strip() not in image_alias.keys():