Skip to content

Commit

Permalink
Merge pull request sphinx-doc#10051 from tk0miya/9777_quotes_in_manpage
Browse files Browse the repository at this point in the history
test: manpage: double quotes are escaped since docutils-0.18
  • Loading branch information
tk0miya committed Jan 3, 2022
2 parents 3d5ddb6 + d1a070e commit 6402acd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_smartquotes.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6402acd

Please sign in to comment.