Description

if one sets a width="" in html the gui convertor text_html_text_moin_wiki throws an index error

Example

Component selection

Details

MoinMoin Version

1.9

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

   1 diff -r f8e67522e80e MoinMoin/converter/text_html_text_moin_wiki.py
   2 --- a/MoinMoin/converter/text_html_text_moin_wiki.py    Thu May 06 15:36:56 2010 +0200
   3 +++ b/MoinMoin/converter/text_html_text_moin_wiki.py    Sun May 09 22:43:55 2010 +0200
   4 @@ -1077,7 +1077,7 @@
   5                  align += self._alignment.get(value, "")
   6          if node.hasAttribute("width"):
   7              value = node.getAttribute("width")
   8 -            if value[-1] == "%":
   9 +            if value and value[-1] == "%":
  10                  align += value
  11              else:
  12                  result.append('width="%s"' % self._check_length(value))

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/GUI_convertor_list_index_out_of_range (last edited 2010-05-09 20:55:08 by ReimarBauer)