mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10051 from tk0miya/9777_quotes_in_manpage
test: manpage: double quotes are escaped since docutils-0.18
This commit is contained in:
commit
6402acde81
@ -11,6 +11,8 @@
|
||||
import pytest
|
||||
from html5lib import HTMLParser
|
||||
|
||||
from sphinx.util import docutils
|
||||
|
||||
|
||||
@pytest.mark.sphinx(buildername='html', testroot='smartquotes', freshenv=True)
|
||||
def test_basic(app, status, warning):
|
||||
@ -51,7 +53,10 @@ def test_man_builder(app, status, warning):
|
||||
app.build()
|
||||
|
||||
content = (app.outdir / 'python.1').read_text()
|
||||
assert '\\-\\- "Sphinx" is a tool that makes it easy ...' in content
|
||||
if docutils.__version_info__ > (0, 18):
|
||||
assert r'\-\- \(dqSphinx\(dq is a tool that makes it easy ...' in content
|
||||
else:
|
||||
assert r'\-\- "Sphinx" is a tool that makes it easy ...' in content
|
||||
|
||||
|
||||
@pytest.mark.sphinx(buildername='latex', testroot='smartquotes', freshenv=True)
|
||||
|
Loading…
Reference in New Issue
Block a user