summaryrefslogtreecommitdiffstats
path: root/rtemsspec/sphinxcontent.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-07 06:57:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-07 07:09:08 +0200
commitc4e460d8ba1fb0539371963fcfa6c2113538c5dd (patch)
tree6e305dd5c9f34c47e0fe82fb7ce9863d3220f0e6 /rtemsspec/sphinxcontent.py
parentspec: Fix formatting (diff)
downloadrtems-central-c4e460d8ba1fb0539371963fcfa6c2113538c5dd.tar.bz2
content: Add Content.comment_block()
Diffstat (limited to 'rtemsspec/sphinxcontent.py')
-rw-r--r--rtemsspec/sphinxcontent.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py
index 6247f987..85c7858c 100644
--- a/rtemsspec/sphinxcontent.py
+++ b/rtemsspec/sphinxcontent.py
@@ -208,6 +208,10 @@ class SphinxContent(Content):
self.prepend([f".. {stm}" for stm in statements])
self.prepend([f".. SPDX-License-Identifier: {self._license}", ""])
+ def open_comment_block(self) -> None:
+ """ Opens a comment block. """
+ self.push_indent(".. ", "..")
+
def _get_ref_term(ctx: ItemGetValueContext) -> Any:
return f":term:`{ctx.value[ctx.key]}`"