changeset 1725:ef67391ffced

text_html_text_moin_wiki:does not change to ImageLink if attachment: or http is not scaled
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 09 Jan 2007 07:38:26 +0100
parents 40345ea89a70
children 810a5856c94c 6e4acd9904d7
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Jan 09 00:00:17 2007 +0100
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Jan 09 07:38:26 2007 +0100
@@ -1192,7 +1192,7 @@
         # Attachment image
         if (title and title.startswith("attachment:") and
             wikiutil.isPicture(wikiutil.url_unquote(title[len("attachment:"):]))) or title is None or src.startswith('http'):
-            if height is None and width is None and target is None and alt is None:
+            if height is None and width is None and target is None and (alt is None or alt is ''):
                 self.text.extend([self.white_space,
                                   wikiutil.url_unquote(title),
                                   self.white_space])