Allow periods in texinfo node names

Closes #5871.
This commit is contained in:
Brandon T. Willard 2019-01-01 21:38:14 -06:00 committed by Takeshi KOMIYA
parent 6b3244d679
commit 87a0bf9d5e

View File

@ -384,7 +384,7 @@ class TexinfoTranslator(nodes.NodeVisitor):
def escape_id(self, s):
# type: (unicode) -> unicode
"""Return an escaped string suitable for node names and anchors."""
bad_chars = ',:.()'
bad_chars = ',:()'
for bc in bad_chars:
s = s.replace(bc, ' ')
s = ' '.join(s.split()).strip()