Remove extra paragraph around keybindings

develop
lethosor 2022-08-07 01:51:38 -04:00
parent 5a14992aca
commit 7651d301d2
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 4 additions and 4 deletions

@ -45,12 +45,11 @@ def scan_all_keybinds(root_dir):
def render_dfhack_keybind(command) -> List[nodes.paragraph]:
out = []
if command not in _KEYBINDS:
return []
newnode = nodes.paragraph()
return out
for keycmd, key, ctx in _KEYBINDS[command]:
n = nodes.paragraph()
newnode += n
n += nodes.strong('Keybinding:', 'Keybinding:')
n += nodes.inline(' ', ' ')
for k in key:
@ -61,7 +60,8 @@ def render_dfhack_keybind(command) -> List[nodes.paragraph]:
if ctx:
n += nodes.inline(' in ', ' in ')
n += nodes.literal(ctx, ctx)
return [newnode]
out.append(n)
return out
# pylint:disable=unused-argument,dangerous-default-value,too-many-arguments