changeset 1416:bda9795afce6

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).
author Ivan Gavrilov <ivan.wntr@gmail.com>
date Sun, 08 Jul 2012 14:13:13 +0400
parents 614005b5edb3
children 2a59cb0f0755
files MoinMoin/converter/html_out.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/html_out.py	Sat Jul 07 20:22:21 2012 +0200
+++ b/MoinMoin/converter/html_out.py	Sun Jul 08 14:13:13 2012 +0400
@@ -367,7 +367,7 @@
 
         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)