1. Ivan Gavrilov
  2. moin-2.0

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).

  • Participants
  • Parent commits 614005b
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/converter/html_out.py

View file
  • Ignore whitespace
 
         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)