changeset 5668:e77e7448ae1f

text_html_text_moin_wiki: fixed index error for a width="". (MoinMoinBugs/GUI_convertor_list_index_out_of_range)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 09 May 2010 22:53:36 +0200
parents f7f9d35f9d23
children 3beb0bca161e
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	Sun May 09 14:10:23 2010 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Sun May 09 22:53:36 2010 +0200
@@ -1077,7 +1077,7 @@
                 align += self._alignment.get(value, "")
         if node.hasAttribute("width"):
             value = node.getAttribute("width")
-            if value[-1] == "%":
+            if value and value[-1] == "%":
                 align += value
             else:
                 result.append('width="%s"' % self._check_length(value))