diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2017-03-14 23:43:04 +0300 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2017-04-25 14:17:13 +0300 |
commit | edc7f30b9cc92f4d721eeef62ffa826f23a09a9f (patch) | |
tree | 5161816650361ed7d0708a4b8496304c2216f365 /tests/test_environment_toctree.py | |
parent | 710ddb388045184f921666b2ad7aef16d131de3f (diff) | |
download | sphinx-git-edc7f30b9cc92f4d721eeef62ffa826f23a09a9f.tar.gz |
Remove the custom smartypants code
Instead rely on docutils’ ‘smart_quotes’ option which is available
since docutils 0.10.
This adds support for internationalization: our code supported only
English quotes, while docutils code supports 27 different languages.
Closes #498, #580, #3345, #3472.
Diffstat (limited to 'tests/test_environment_toctree.py')
-rw-r--r-- | tests/test_environment_toctree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_environment_toctree.py b/tests/test_environment_toctree.py index 0f1dffa43..a2d54fb79 100644 --- a/tests/test_environment_toctree.py +++ b/tests/test_environment_toctree.py @@ -36,7 +36,7 @@ def test_process_doc(app): list_item)]) assert_node(toctree[0][0], - [compact_paragraph, reference, "Welcome to Sphinx Tests's documentation!"]) + [compact_paragraph, reference, u"Welcome to Sphinx Tests’s documentation!"]) assert_node(toctree[0][0][0], reference, anchorname='') assert_node(toctree[0][1][0], addnodes.toctree, caption="Table of Contents", glob=False, hidden=False, @@ -150,7 +150,7 @@ def test_get_toc_for(app): addnodes.toctree)])], [list_item, compact_paragraph])]) # [2][0] assert_node(toctree[0][0], - [compact_paragraph, reference, "Welcome to Sphinx Tests's documentation!"]) + [compact_paragraph, reference, u"Welcome to Sphinx Tests’s documentation!"]) assert_node(toctree[0][1][2], ([compact_paragraph, reference, "subsection"], [bullet_list, list_item, compact_paragraph, reference, "subsubsection"])) @@ -177,7 +177,7 @@ def test_get_toc_for_only(app): addnodes.toctree)])], [list_item, compact_paragraph])]) # [2][0] assert_node(toctree[0][0], - [compact_paragraph, reference, "Welcome to Sphinx Tests's documentation!"]) + [compact_paragraph, reference, u"Welcome to Sphinx Tests’s documentation!"]) assert_node(toctree[0][1][1], ([compact_paragraph, reference, "Section for HTML"], [bullet_list, addnodes.toctree])) |