Commits

Jon Waltman committed 2e8dbfd

Tweak how the Texinfo writer escapes index entries.

Comments (0)

Files changed (1)

sphinx/writers/texinfo.py

             return
         for entry in node['entries']:
             typ, text, tid, text2 = entry
-            text = text.replace('!', ' ').replace(';', ' ')
+            text = text.replace('()', ' ').replace('(', '[').replace(')', ']')
             text = escape_id(text)
             self.add_text('@geindex %s\n' % text, fresh=1)