mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Rename QAPIDoc.Section.name to .tag
Since the previous commit, QAPIDoc.Section.name is either None (untagged section) or the section's tag string ('Returns', '@name', ...). Rename it to .tag. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-9-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
573e2223f9
commit
31c54b92ad
3 changed files with 19 additions and 19 deletions
|
@ -258,11 +258,11 @@ class QAPISchemaGenRSTVisitor(QAPISchemaVisitor):
|
|||
"""Return list of doctree nodes for additional sections"""
|
||||
nodelist = []
|
||||
for section in doc.sections:
|
||||
if section.name and section.name == 'TODO':
|
||||
if section.tag and section.tag == 'TODO':
|
||||
# Hide TODO: sections
|
||||
continue
|
||||
snode = self._make_section(section.name)
|
||||
if section.name and section.name.startswith('Example'):
|
||||
snode = self._make_section(section.tag)
|
||||
if section.tag and section.tag.startswith('Example'):
|
||||
snode += self._nodes_for_example(section.text)
|
||||
else:
|
||||
self._parse_text_into_node(section.text, snode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue