">"  committed dafe822

generate_indices is calling translate using a dictionary. If letter is a non-unicode str, then this
results in a TypeError being raised. This fix merely ensures that the translate method called is
the unicode version of the method.

  • Participants
  • Parent commits c9e52db
  • Branches default

Comments (0)

Files changed (1)

File sphinx/writers/

                 if i > 0:
                 ret.append('\\bigletter{%s}\n' %
-                           letter.translate(tex_escape_map))
+                           unicode(letter).translate(tex_escape_map))
                 for entry in entries:
                     if not entry[3]: