mn-requirements 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/default/isodoc.rb +6 -3
- data/lib/metanorma/requirements/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a911bf95744bbdb7de8e2b5b290532b6e0f2d74c033f0bbfb13c9c0f136e4ae
|
4
|
+
data.tar.gz: dac3261957972d66fa56830bb891ecfc29872cc9ab014986630fc02fc33ceb28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a565bdf1f2c03bca4849c4a1d2658c58b7681b62fe0e17497385953013bfb8fd63f8161307a3059476c15688888a208826c33b2a029b5fc250e6f9c297bdc63b
|
7
|
+
data.tar.gz: b1e542ac384b4f0fd7c73969fb4f9f970986fe6eb73f357be17bfb6bc7d358c893ced9813b04137cf64d3c08e76e4acd11ffc3bce776f98e7095ac8f235e08f7
|
@@ -43,8 +43,9 @@ module Metanorma
|
|
43
43
|
|
44
44
|
def recommendation_header(node, out)
|
45
45
|
label, title, name = recommendation_labels(node)
|
46
|
-
ret = name ? [name
|
46
|
+
ret = name ? [name] : []
|
47
47
|
if label || title
|
48
|
+
ret << l10n(":") unless ret.empty?
|
48
49
|
ret += ["<br/>", label]
|
49
50
|
ret << l10n(". ") if label && title
|
50
51
|
ret << title
|
@@ -96,8 +97,10 @@ module Metanorma
|
|
96
97
|
return out if node["exclude"] == "true"
|
97
98
|
|
98
99
|
ret = node.dup
|
99
|
-
|
100
|
-
|
100
|
+
if reqt_subpart?(node.name)
|
101
|
+
ret["type"] = reqt_component_type(node)
|
102
|
+
ret.name = "div"
|
103
|
+
end
|
101
104
|
out << ret
|
102
105
|
out
|
103
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mn-requirements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: isodoc-i18n
|