Tweak how the Texinfo writer escapes index entries.

This commit is contained in:
Jonathan Waltman
2011-01-08 21:18:45 -06:00
parent 9314b385ae
commit b0dad7ec6a

View File

@@ -1066,7 +1066,7 @@ class TexinfoTranslator(nodes.NodeVisitor):
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)