Fix #8618: html: incorrect HTML for single compound-kdb separators

This commit is contained in:
Takeshi KOMIYA
2020-12-30 21:12:00 +09:00
parent 21698c1446
commit 6a53c53d53
3 changed files with 21 additions and 1 deletions

View File

@@ -251,6 +251,17 @@ def get_verifier(verify, verify_re):
'</kbd></p>'),
'\\sphinxkeyboard{\\sphinxupquote{Control+X}}',
),
(
# kbd role
'verify',
':kbd:`Alt+^`',
('<p><kbd class="kbd docutils literal notranslate">'
'<kbd class="kbd docutils literal notranslate">Alt</kbd>'
'+'
'<kbd class="kbd docutils literal notranslate">^</kbd>'
'</kbd></p>'),
'\\sphinxkeyboard{\\sphinxupquote{Alt+\\textasciicircum{}}}',
),
(
# kbd role
'verify',
@@ -266,6 +277,13 @@ def get_verifier(verify, verify_re):
'</kbd></p>'),
'\\sphinxkeyboard{\\sphinxupquote{M\\sphinxhyphen{}x M\\sphinxhyphen{}s}}',
),
(
# kbd role
'verify',
':kbd:`-`',
'<p><kbd class="kbd docutils literal notranslate">-</kbd></p>',
'\\sphinxkeyboard{\\sphinxupquote{\\sphinxhyphen{}}}',
),
(
# non-interpolation of dashes in option role
'verify_re',