From 28d184c0d68f5ce210f8b318881e14aaf52aa143 Mon Sep 17 00:00:00 2001 From: John Gardner Date: Fri, 30 Dec 2022 11:57:51 +1100 Subject: [PATCH] Add test for multi-word key names (``kbd`` role) (#10765) --- tests/test_markup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_markup.py b/tests/test_markup.py index fa950a5ae..0bb630223 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -299,6 +299,14 @@ def get_verifier(verify, verify_re): ('\\sphinxAtStartPar\n' '\\sphinxkeyboard{\\sphinxupquote{Caps Lock}}'), ), + ( + # kbd role + 'verify', + ':kbd:`sys rq`', + '

sys rq

', + ('\\sphinxAtStartPar\n' + '\\sphinxkeyboard{\\sphinxupquote{sys rq}}'), + ), ( # non-interpolation of dashes in option role 'verify_re',