specware 1.3.2__tar.gz → 1.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: specware
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Provides utilities to specify software.
5
5
  Keywords: certification,documentation,markdown,qualification,requirements-management,traceability
6
6
  Author: The specware Authors
@@ -4,7 +4,7 @@
4
4
 
5
5
  [project]
6
6
  name = "specware"
7
- version = "1.3.2"
7
+ version = "1.3.4"
8
8
  description = "Provides utilities to specify software."
9
9
  authors = [
10
10
  {name = "The specware Authors", email = "specthings@embedded-brains.de"}
@@ -573,7 +573,7 @@ def get_value_double_colon(ctx: ItemGetValueContext) -> Any:
573
573
 
574
574
  def get_value_header_file(ctx: ItemGetValueContext) -> Any:
575
575
  """ Get the value formatted as a header file. """
576
- return f"``<{ctx.value[ctx.key]}>``"
576
+ return f"`<{ctx.value[ctx.key]}>`"
577
577
 
578
578
 
579
579
  def get_value_hash(ctx: ItemGetValueContext) -> Any:
@@ -110,6 +110,11 @@ def get_value_sphinx_param(ctx: ItemGetValueContext) -> str:
110
110
  return f"``{sanitize_name(ctx.value[ctx.key])}``"
111
111
 
112
112
 
113
+ def get_value_sphinx_header_file(ctx: ItemGetValueContext) -> str:
114
+ """ Gets a header file. """
115
+ return f"``<{ctx.value[ctx.key]}>``"
116
+
117
+
113
118
  class SphinxInterfaceMapper(SphinxMapper):
114
119
  """ Sphinx item mapper for the interface documentation. """
115
120
 
@@ -135,7 +140,7 @@ class SphinxInterfaceMapper(SphinxMapper):
135
140
  get_value_sphinx_param)
136
141
  self.add_get_value("interface/group:/name", self._get_group)
137
142
  self.add_get_value("interface/header-file:/path",
138
- get_value_header_file)
143
+ get_value_sphinx_header_file)
139
144
  self.add_get_value("interface/macro:/name", self._get_function)
140
145
  self.add_get_value("interface/macro:/params/name",
141
146
  get_value_sphinx_param)
@@ -714,7 +714,10 @@ class TransitionMap:
714
714
  enumerators.append(self._get_entry(ident, transitions[0]))
715
715
  enumerators.append("#endif")
716
716
  entries.append("\n".join(enumerators))
717
- content.add([f"static const {ident}_Entry", f"{ident}_Entries[] = {{"])
717
+ content.add([
718
+ "/* clang-format off */", "", f"static const {ident}_Entry",
719
+ f"{ident}_Entries[] = {{"
720
+ ])
718
721
  entries[-1] = entries[-1].replace("},", "}")
719
722
  content.append(entries)
720
723
  integer_type = get_integer_type(len(self._entries))
@@ -728,7 +731,7 @@ class TransitionMap:
728
731
  wrapper.subsequent_indent = " "
729
732
  wrapper.width = 79
730
733
  content.append(wrapper.wrap(text))
731
- content.append("};")
734
+ content.append(["};", "", "/* clang-format on */"])
732
735
 
733
736
  def get_post_entry_member(self, co_idx: int) -> str:
734
737
  """
File without changes
File without changes
File without changes
File without changes
File without changes