Merge pull request #8719 from tk0miya/8714_kbd_capslock

Fix #8714: html: kbd role with "Caps Lock" rendered incorrectly
This commit is contained in:
Takeshi KOMIYA
2021-01-22 22:07:06 +09:00
committed by GitHub
3 changed files with 32 additions and 3 deletions
+7
View File
@@ -284,6 +284,13 @@ def get_verifier(verify, verify_re):
'<p><kbd class="kbd docutils literal notranslate">-</kbd></p>',
'\\sphinxkeyboard{\\sphinxupquote{\\sphinxhyphen{}}}',
),
(
# kbd role
'verify',
':kbd:`Caps Lock`',
'<p><kbd class="kbd docutils literal notranslate">Caps Lock</kbd></p>',
'\\sphinxkeyboard{\\sphinxupquote{Caps Lock}}',
),
(
# non-interpolation of dashes in option role
'verify_re',