add summary text in its own paragraph element

develop
myk002 2022-08-16 00:12:25 -07:00
parent 524c49cb28
commit 83e1fa7de0
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 2 deletions

@ -142,7 +142,7 @@ class DFHackToolDirective(DFHackToolDirectiveBase):
nodes.paragraph('', '', *tag_nodes),
]
if 'no-command' in self.options:
ret_nodes += [nodes.inline(text=self.options.get('summary', ''))]
ret_nodes += [nodes.paragraph('', '', nodes.inline(text=self.options.get('summary', '')))]
return ret_nodes
def run(self):
@ -161,7 +161,7 @@ class DFHackCommandDirective(DFHackToolDirectiveBase):
command = self.get_name_or_docname()
return [
self.make_labeled_paragraph('Command', command, content_class=nodes.literal),
nodes.inline(text=self.options.get('summary', '')),
nodes.paragraph('', '', nodes.inline(text=self.options.get('summary', ''))),
*render_dfhack_keybind(command),
]