[rtems-central commit] specdoc: Fix output format of regular expressions

Sebastian Huber sebh at rtems.org
Tue Jul 28 05:32:57 UTC 2020


Module:    rtems-central
Branch:    master
Commit:    7617fcb8276c069a461f698d2eb3cb8038a8e25e
Changeset: http://git.rtems.org/rtems-central/commit/?id=7617fcb8276c069a461f698d2eb3cb8038a8e25e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 28 06:56:37 2020 +0200

specdoc: Fix output format of regular expressions

---

 rtemsspec/specdoc.py            | 2 +-
 rtemsspec/tests/test_specdoc.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rtemsspec/specdoc.py b/rtemsspec/specdoc.py
index 40e4a47..7955503 100644
--- a/rtemsspec/specdoc.py
+++ b/rtemsspec/specdoc.py
@@ -205,7 +205,7 @@ def _document_op_uid(ctx: _AssertContext, negate: bool,
 def _document_op_re(ctx: _AssertContext, negate: bool,
                     assert_info: Any) -> None:
     ctx.paste(f"shall {_negate(negate)}match with "
-              f"the regular expression \"``{assert_info}\"``")
+              f"the regular expression \"``{assert_info}``\"")
 
 
 def _document_op_in(ctx: _AssertContext, negate: bool,
diff --git a/rtemsspec/tests/test_specdoc.py b/rtemsspec/tests/test_specdoc.py
index 0ac432e..0e61163 100644
--- a/rtemsspec/tests/test_specdoc.py
+++ b/rtemsspec/tests/test_specdoc.py
@@ -129,7 +129,7 @@ A value of this type shall be of one of the following variants:
 
     * and, shall be not equal to "``k``",
 
-    * and, shall match with the regular expression "``l"``,
+    * and, shall match with the regular expression "``l``",
 
     * and, shall be true,
 
@@ -171,7 +171,7 @@ A value of this type shall be of one of the following variants:
 
     * or, shall be equal to "``k``",
 
-    * or, shall not match with the regular expression "``l"``,
+    * or, shall not match with the regular expression "``l``",
 
     * or, shall be false,
 



More information about the vc mailing list