summaryrefslogtreecommitdiffstats
path: root/rtemsqual/specdoc.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-22 18:37:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:23 +0200
commit698f60ed002d1cef133e3cdec06f03b60b852133 (patch)
tree7094c96f410a3458e44a2046417798fd4fcfe551 /rtemsqual/specdoc.py
parentspec: Add specification of specification items (diff)
downloadrtems-central-698f60ed002d1cef133e3cdec06f03b60b852133.tar.bz2
specdoc: Fix format if no types are refined
Diffstat (limited to 'rtemsqual/specdoc.py')
-rw-r--r--rtemsqual/specdoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemsqual/specdoc.py b/rtemsqual/specdoc.py
index e32286d8..9ca5c5f0 100644
--- a/rtemsqual/specdoc.py
+++ b/rtemsqual/specdoc.py
@@ -217,11 +217,12 @@ class _Documenter:
]
if len(refines) == 1:
content.wrap(f"This type refines the {refines[0]}.")
+ content.paste(self._description)
else:
content.add_list(refines,
"This type refines the following types:",
add_blank_line=True)
- content.paste(self._description)
+ content.wrap(self._description)
def document(self,
content: SphinxContent,