summaryrefslogtreecommitdiff
path: root/tests/test_domain_rst.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-12 21:06:15 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-14 18:32:40 +0900
commit1900c729a3e940af49706dabb36addbc6a076ecb (patch)
tree854f2f14510cea0e2cc55cf4abfa9cede8501959 /tests/test_domain_rst.py
parent11a4e47d6295b40ca02f3d2dd0e6e021568c150f (diff)
downloadsphinx-git-1900c729a3e940af49706dabb36addbc6a076ecb.tar.gz
Fix #6299: rst:directive directive generates waste space
Diffstat (limited to 'tests/test_domain_rst.py')
-rw-r--r--tests/test_domain_rst.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_domain_rst.py b/tests/test_domain_rst.py
index f6ea11619..3310b5752 100644
--- a/tests/test_domain_rst.py
+++ b/tests/test_domain_rst.py
@@ -23,7 +23,7 @@ def test_parse_directive():
assert s == ('foö', '')
s = parse_directive(' .. foö :: ')
- assert s == ('foö', ' ')
+ assert s == ('foö', '')
s = parse_directive('.. foö:: args1 args2')
assert s == ('foö', ' args1 args2')
@@ -48,8 +48,7 @@ def test_rst_directive(app):
text = ".. rst:directive:: .. toctree::"
doctree = restructuredtext.parse(app, text)
assert_node(doctree, (addnodes.index,
- [desc, ([desc_signature, ([desc_name, ".. toctree::"],
- [desc_addname, " "])],
+ [desc, ([desc_signature, desc_name, ".. toctree::"],
[desc_content, ()])]))
assert_node(doctree[0],
entries=[("single", "toctree (directive)", "directive-toctree", "", None)])