Fix #3952: apidoc: module header is too escaped

This commit is contained in:
Takeshi KOMIYA
2018-01-28 18:58:58 +09:00
parent 01caa52355
commit 321b3d49cb
3 changed files with 7 additions and 2 deletions

View File

@@ -14,3 +14,5 @@ from sphinx.util.rst import escape
def test_escape():
assert escape(':ref:`id`') == r'\:ref\:\`id\`'
assert escape('footnote [#]_') == r'footnote \[\#\]\_'
assert escape('sphinx.application') == r'sphinx.application'
assert escape('.. toctree::') == r'\.. toctree\:\:'