metanorma-ieee 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ module IsoDoc
90
90
  end
91
91
 
92
92
  def div_cleanup(docxml)
93
- d = docxml.at("//div[@class = 'WordSection2']"\
93
+ d = docxml.at("//div[@class = 'WordSection2']" \
94
94
  "[div[@class = 'WordSection2']]") and
95
95
  d.replace(d.children)
96
96
  i = 0
@@ -69,12 +69,13 @@ module IsoDoc
69
69
  def termnote_anchor_names(docxml)
70
70
  docxml.xpath(ns("//*[termnote]")).each do |t|
71
71
  c = Counter.new
72
+ sequence = UUIDTools::UUID.random_create.to_s
72
73
  notes = t.xpath(ns("./termnote"))
73
74
  notes.noblank.each do |n|
74
75
  @anchors[n["id"]] =
75
76
  anchor_struct("#{@labels['termnote']} #{increment_label(notes, n, c)}",
76
77
  n, @labels["note_xref"], "termnote", false)
77
- .merge(sequence: UUIDTools::UUID.random_create.to_s)
78
+ .merge(sequence: sequence)
78
79
  end
79
80
  end
80
81
  end
@@ -244,7 +244,7 @@ and all applicable laws and regulations.
244
244
 
245
245
  [[boilerplate-participants-wg]]
246
246
  ==== {blank}
247
- At the time this draft {{ doctype }} was completed, the {{ working_group }} Working Group had the following membership:
247
+ At the time this draft {{ doctype }} was completed, the {{ working_group }} had the following membership:
248
248
 
249
249
  ++++
250
250
  <membership>
@@ -1,7 +1,8 @@
1
1
  module Metanorma
2
2
  module IEEE
3
3
  class TermLookupCleanup < Metanorma::Standoc::TermLookupCleanup
4
- def remove_missing_ref_term(node, _target)
4
+ def remove_missing_ref_term(node, _target, type)
5
+ type == "symbol" and return super
5
6
  node.at("../xrefrender")&.remove
6
7
  #node.replace("<preferred><expression><name>#{node.children.to_xml}"\
7
8
  # "</name></expression></preferred>")
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IEEE
3
- VERSION = "1.0.13".freeze
3
+ VERSION = "1.0.15".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc