diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-11-16 17:51:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 17:51:41 +0900 |
commit | af9a404de84c98a4ae94f4e4e77c6aacec5ea3fc (patch) | |
tree | b981f88e92573fe2ed479d5469d96c4b671ea8a4 /tests/test_markup.py | |
parent | ef09ea23feaf1d21faa3d5fd990a49fb14642bfa (diff) | |
parent | 660e746cf801b9fce867a35a1ad3b65ae9ef43c5 (diff) | |
download | sphinx-git-af9a404de84c98a4ae94f4e4e77c6aacec5ea3fc.tar.gz |
Merge pull request #6832 from tk0miya/6738_new_hlescape_for_unicode_latex_engine
Fix #6738: latex: literal_block does not support raw unicode characters
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r-- | tests/test_markup.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py index b8c9b66d9..94d1af951 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -312,6 +312,24 @@ def test_inline(get_verifier, type, rst, html_expected, latex_expected): verifier(rst, html_expected, latex_expected) +@pytest.mark.sphinx(confoverrides={'latex_engine': 'xelatex'}) +@pytest.mark.parametrize('type,rst,html_expected,latex_expected', [ + ( + # in verbatim code fragments + 'verify', + '::\n\n @Γ\\∞${}', + None, + ('\\begin{sphinxVerbatim}[commandchars=\\\\\\{\\}]\n' + '@Γ\\PYGZbs{}∞\\PYGZdl{}\\PYGZob{}\\PYGZcb{}\n' + '\\end{sphinxVerbatim}'), + ), +]) +def test_inline_for_unicode_latex_engine(get_verifier, type, rst, + html_expected, latex_expected): + verifier = get_verifier(type) + verifier(rst, html_expected, latex_expected) + + def test_samp_role(parse): # no braces text = ':samp:`a{b}c`' |