mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Tweak how the Texinfo writer escapes index entries.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user