mn-requirements 0.1.3.1 → 0.1.3.2
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.
- checksums.yaml +4 -4
- data/lib/metanorma/modspec/isodoc.rb +8 -4
- data/lib/metanorma/requirements/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5279645cfb3c8b0bd7218196d8d6c1398f1ca3031fd04d6a9187faa1b6378da4
|
4
|
+
data.tar.gz: eb6ab1d3a683760dfc44888114cd9bd96d41ef25248a94693193d667c65fa3a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be02fb8de6319a90cb9a75ac344e113d55a992c658e6e3b56299e02a04a01a5c00a0aa903e593cf3deb7ce11fc660e249c9e7dc0cf2f3b600e8aba6721369d1
|
7
|
+
data.tar.gz: 97291b88c1ab408bfa8e81ceb3d27f68c55edbb752fa70f19c0f01730671dd1d9109e3859f41557e51e46fdcbe12d2e1cf0fc19126a5cd218e467d4a3b6ca4a0
|
@@ -126,10 +126,12 @@ module Metanorma
|
|
126
126
|
return node unless node.at(ns("./component[@class = 'step']"))
|
127
127
|
|
128
128
|
d = node.at(ns("./component[@class = 'step']"))
|
129
|
-
|
129
|
+
id = d["id"] ? " id='#{d['id']}'" : ""
|
130
|
+
d = d.replace("<ol class='steps'><li#{id}>#{d.children.to_xml}</li></ol>")
|
130
131
|
.first
|
131
132
|
node.xpath(ns("./component[@class = 'step']")).each do |f|
|
132
|
-
|
133
|
+
id = f["id"] ? " id='#{f['id']}'" : ""
|
134
|
+
f = f.replace("<li#{id}>#{f.children.to_xml}</li>").first
|
133
135
|
d << f
|
134
136
|
end
|
135
137
|
node
|
@@ -137,7 +139,8 @@ module Metanorma
|
|
137
139
|
|
138
140
|
def recommendation_attributes1_component(node, out)
|
139
141
|
node = recommendation_steps(node)
|
140
|
-
|
142
|
+
id = node["id"] ? " id='#{node['id']}'" : ""
|
143
|
+
out << "<tr#{id}><td>#{node['label']}</td><td>#{node.children}</td></tr>"
|
141
144
|
out
|
142
145
|
end
|
143
146
|
|
@@ -168,7 +171,8 @@ module Metanorma
|
|
168
171
|
return reqt_dl(node.first_element_child, out)
|
169
172
|
node.name == "component" and
|
170
173
|
return recommendation_attributes1_component(node, out)
|
171
|
-
|
174
|
+
id = node["id"] ? " id='#{node['id']}'" : ""
|
175
|
+
out.add_child("<tr#{id}><td colspan='2'></td></tr>").first
|
172
176
|
.at(ns(".//td")) <<
|
173
177
|
(preserve_in_nested_table?(node) ? node : node.children)
|
174
178
|
out
|