Commits

Ivan Gavrilov committed bda9795

One more fix for unicode issues.
This one resolves a case with renaming an image page
(create non-unicode image page, rename it with unicode
characters).

Comments (0)

Files changed (1)

MoinMoin/converter/html_out.py

 
         if obj_type == "img":
             # Images have alt text
-            alt = ''.join(str(e) for e in elem) # XXX handle non-text e
+            alt = ''.join(unicode(e) for e in elem) # XXX handle non-text e
             if alt:
                 attrib[html.alt] = alt
             new_elem = html.img(attrib=attrib)