|
@@ -130,6 +130,15 @@ def ensure_blank_line(self) -> None:
|
|
|
|
|
|
# Transmogrification helpers
|
|
|
|
|
|
+ def visit_paragraph(self, section: QAPIDoc.Section) -> None:
|
|
|
+ # Squelch empty paragraphs.
|
|
|
+ if not section.text:
|
|
|
+ return
|
|
|
+
|
|
|
+ self.ensure_blank_line()
|
|
|
+ self.add_lines(section.text, section.info)
|
|
|
+ self.ensure_blank_line()
|
|
|
+
|
|
|
def preamble(self, ent: QAPISchemaDefinition) -> None:
|
|
|
"""
|
|
|
Generate option lines for QAPI entity directives.
|