[rtems-central commit] applconfig: Clear page before options
Sebastian Huber
sebh at rtems.org
Wed Nov 17 08:07:50 UTC 2021
Module: rtems-central
Branch: master
Commit: 294b0dc8cfe347d080c8f472f26c06c593ccbd97
Changeset: http://git.rtems.org/rtems-central/commit/?id=294b0dc8cfe347d080c8f472f26c06c593ccbd97
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Nov 17 09:04:12 2021 +0100
applconfig: Clear page before options
---
rtemsspec/applconfig.py | 2 ++
rtemsspec/tests/test_applconfig.py | 44 ++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/rtemsspec/applconfig.py b/rtemsspec/applconfig.py
index 72e65de..4019404 100644
--- a/rtemsspec/applconfig.py
+++ b/rtemsspec/applconfig.py
@@ -91,6 +91,8 @@ class _ContentAdaptor:
index_entries: List[str]) -> None:
""" Adds an option. """
self.content.add(f".. Generated from spec:{uid}")
+ with self.content.directive("raw", "latex"):
+ self.content.add("\\clearpage")
self.content.add_index_entries([name] + index_entries)
self.content.add_label(name)
self.content.add_header(name, level=3)
diff --git a/rtemsspec/tests/test_applconfig.py b/rtemsspec/tests/test_applconfig.py
index adb8d3d..2184c03 100644
--- a/rtemsspec/tests/test_applconfig.py
+++ b/rtemsspec/tests/test_applconfig.py
@@ -73,6 +73,10 @@ description
.. Generated from spec:/a
+.. raw:: latex
+
+ \\clearpage
+
.. index:: a
.. index:: index a
@@ -129,6 +133,10 @@ references:
.. Generated from spec:/b
+.. raw:: latex
+
+ \\clearpage
+
.. index:: b
.. _b:
@@ -155,6 +163,10 @@ description b
.. Generated from spec:/c
+.. raw:: latex
+
+ \\clearpage
+
.. index:: c
.. _c:
@@ -188,6 +200,10 @@ constraint d
.. Generated from spec:/e
+.. raw:: latex
+
+ \\clearpage
+
.. index:: e
.. _e:
@@ -213,6 +229,10 @@ description e
.. Generated from spec:/f
+.. raw:: latex
+
+ \\clearpage
+
.. index:: f
.. _f:
@@ -238,6 +258,10 @@ description f
.. Generated from spec:/h
+.. raw:: latex
+
+ \\clearpage
+
.. index:: h
.. _h:
@@ -263,6 +287,10 @@ description h
.. Generated from spec:/i
+.. raw:: latex
+
+ \\clearpage
+
.. index:: i
.. _i:
@@ -288,6 +316,10 @@ description i
.. Generated from spec:/j
+.. raw:: latex
+
+ \\clearpage
+
.. index:: j
.. _j:
@@ -317,6 +349,10 @@ constraint d
.. Generated from spec:/k
+.. raw:: latex
+
+ \\clearpage
+
.. index:: k
.. _k:
@@ -342,6 +378,10 @@ description k
.. Generated from spec:/l
+.. raw:: latex
+
+ \\clearpage
+
.. index:: l
.. _l:
@@ -375,6 +415,10 @@ The following constraints apply to this configuration option:
.. Generated from spec:/m
+.. raw:: latex
+
+ \\clearpage
+
.. index:: m
.. _m:
More information about the vc
mailing list