mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3952: apidoc: module header is too escaped
This commit is contained in:
@@ -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\:\:'
|
||||
|
||||
Reference in New Issue
Block a user