Add test for multi-word key names (`kbd` role) (#10765)

This commit is contained in:
John Gardner 2022-12-30 11:57:51 +11:00 committed by GitHub
parent bf06d7ef4d
commit 28d184c0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,6 +299,14 @@ def get_verifier(verify, verify_re):
('\\sphinxAtStartPar\n'
'\\sphinxkeyboard{\\sphinxupquote{Caps Lock}}'),
),
(
# kbd role
'verify',
':kbd:`sys rq`',
'<p><kbd class="kbd docutils literal notranslate">sys rq</kbd></p>',
('\\sphinxAtStartPar\n'
'\\sphinxkeyboard{\\sphinxupquote{sys rq}}'),
),
(
# non-interpolation of dashes in option role
'verify_re',