Skip to content

Commit

Permalink
html: kbd role: Fix missing commas in lookup table for multi word key…
Browse files Browse the repository at this point in the history
… names.
  • Loading branch information
textshell committed Nov 7, 2022
1 parent a6032e8 commit 3e74dbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx/builders/html/transforms.py
Expand Up @@ -31,12 +31,12 @@ class KeyboardTransform(SphinxPostTransform):
formats = ('html',)
pattern = re.compile(r'(?<=.)(-|\+|\^|\s+)(?=.)')
multiwords_keys = (('caps', 'lock'),
('page' 'down'),
('page', 'down'),
('page', 'up'),
('scroll' 'lock'),
('scroll', 'lock'),
('num', 'lock'),
('sys' 'rq'),
('back' 'space'))
('sys', 'rq'),
('back', 'space'))

def run(self, **kwargs: Any) -> None:
matcher = NodeMatcher(nodes.literal, classes=["kbd"])
Expand Down

0 comments on commit 3e74dbd

Please sign in to comment.