mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
parent
6b3244d679
commit
87a0bf9d5e
@ -384,7 +384,7 @@ class TexinfoTranslator(nodes.NodeVisitor):
|
|||||||
def escape_id(self, s):
|
def escape_id(self, s):
|
||||||
# type: (unicode) -> unicode
|
# type: (unicode) -> unicode
|
||||||
"""Return an escaped string suitable for node names and anchors."""
|
"""Return an escaped string suitable for node names and anchors."""
|
||||||
bad_chars = ',:.()'
|
bad_chars = ',:()'
|
||||||
for bc in bad_chars:
|
for bc in bad_chars:
|
||||||
s = s.replace(bc, ' ')
|
s = s.replace(bc, ' ')
|
||||||
s = ' '.join(s.split()).strip()
|
s = ' '.join(s.split()).strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user