Skip to content

Commit

Permalink
Merge pull request #10189 from tk0miya/https_pep_role
Browse files Browse the repository at this point in the history
The latest docutils converts :pep: role to the "https" URL (again)
  • Loading branch information
tk0miya committed Feb 13, 2022
2 parents 9ea2b76 + 9d29adb commit 6f0a8f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/test_markup.py
Expand Up @@ -166,16 +166,17 @@ def get(name):
),
(
# pep role with anchor
'verify',
'verify_re',
':pep:`8#id1`',
# since docutils-0.19, :pep: role points to python.org via https schema
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
'href="http://www.python.org/dev/peps/pep-0008#id1">'
'href="https?://www.python.org/dev/peps/pep-0008#id1">'
'<strong>PEP 8#id1</strong></a></p>'),
('\\sphinxAtStartPar\n'
'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
'!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref'
'{http://www.python.org/dev/peps/pep-0008\\#id1}'
'{\\sphinxstylestrong{PEP 8\\#id1}}')
(r'\\sphinxAtStartPar\n'
r'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
r'!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref'
r'{https?://www.python.org/dev/peps/pep-0008\\#id1}'
r'{\\sphinxstylestrong{PEP 8\\#id1}}')
),
(
# rfc role
Expand Down

0 comments on commit 6f0a8f3

Please sign in to comment.