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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8561bbfa3412485e724742474078348fffb06c9687bcf2cb18d815027ab5df2
4
- data.tar.gz: e9d8755e0ba593ca3e308e579bb0abea161ccd0bac385d4e8ef58f946b083c6a
3
+ metadata.gz: 7a911bf95744bbdb7de8e2b5b290532b6e0f2d74c033f0bbfb13c9c0f136e4ae
4
+ data.tar.gz: dac3261957972d66fa56830bb891ecfc29872cc9ab014986630fc02fc33ceb28
5
5
  SHA512:
6
- metadata.gz: f8a0464554be764a948a3aa9a2531dbb0959e867d28c51d5ba9e25febd1e27260d810eae70a15001bedf95bddb386c6d59c0693a2eb8e73c16018ce4bb5c93ca
7
- data.tar.gz: 16afa9642145d263f50ee5e7cd62d9f27ac6ff852250785195ad32d06e6498ca865164b37637fe75ac7069656f5c6d50cf529bcf36ac14af918e06f8ed965c2e
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 + l10n(":")] : []
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
- ret["type"] = reqt_component_type(node)
100
- ret.name = "div"
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  class Requirements
3
- VERSION = "0.0.1".freeze
3
+ VERSION = "0.0.2".freeze
4
4
  end
5
5
  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.1
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-22 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isodoc-i18n