mn-requirements 0.1.3.1 → 0.1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c6daaae7b2380a13eacd8c2abd7bc18795532e824c1901fcab476ed5fdd55a1
4
- data.tar.gz: e630016785ad74e041b6c5049d57d43807fe803d2593452b2c8ebaaf1e22f8d6
3
+ metadata.gz: 5279645cfb3c8b0bd7218196d8d6c1398f1ca3031fd04d6a9187faa1b6378da4
4
+ data.tar.gz: eb6ab1d3a683760dfc44888114cd9bd96d41ef25248a94693193d667c65fa3a8
5
5
  SHA512:
6
- metadata.gz: 31d37eeb8a10ca7722ace26d5f315557eb0251cf47f901f14526962492a43c85a6960ab08254ed3a3626070014e4ce46e3e27dbdc7cdbddf93ea0f446398e0f9
7
- data.tar.gz: 9ca8c5478b8f39309315988646fb2859f7c15d5b0a971324778fc135302b8d711fdf8e5267ecc2bee9cb3df7fef7851d47d7641cb62f2ddc604442be5bc44ea2
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
- d = d.replace("<ol class='steps'><li>#{d.children.to_xml}</li></ol>")
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
- f = f.replace("<li>#{f.children.to_xml}</li>").first
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
- out << "<tr><td>#{node['label']}</td><td>#{node.children}</td></tr>"
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
- out.add_child("<tr><td colspan='2'></td></tr>").first
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  class Requirements
3
- VERSION = "0.1.3.1".freeze
3
+ VERSION = "0.1.3.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mn-requirements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.1
4
+ version: 0.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.