diff --git a/tests/roots/test-root/objects.txt b/tests/roots/test-root/objects.txt index 36c8dd051d..170c026e76 100644 --- a/tests/roots/test-root/objects.txt +++ b/tests/roots/test-root/objects.txt @@ -214,7 +214,8 @@ Test repeated option directive. My secret API. -Reference the first option :option:`-mapi=secret` or :option:`-mapi[=xxx]`. +Reference the first option :option:`-mapi=secret`, :option:`-mapi[=xxx]` +or :option:`-mapi with_space`. User markup diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 15c488be48..138f8a9c12 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -1773,6 +1773,7 @@ def test_option_reference_with_value(app, status, warning): assert 'first option ' in content assert ('' '-mapi[=xxx]') in content + assert '-mapi with_space' in content @pytest.mark.sphinx('html', testroot='theming')