metanorma-standoc 2.0.5.2 → 2.0.5.3

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: 75c1f0434e53ee6bfe52bd329b1ddc84f08386c39da60ff1a00f6a34914b7709
4
- data.tar.gz: c7ff940d7544e1d81b4a9ac7e3d0f42bc0398a34b8a5e7036ffe4806a2776615
3
+ metadata.gz: 0dc54789f419f00172644d6e4a9fe3bbba74e962ff0abd452ef4f2ad4277c695
4
+ data.tar.gz: 0f76a11d0488e02438a625f8b0d050a1ce5199e209af3e5a3eb392834c996c38
5
5
  SHA512:
6
- metadata.gz: 965db9580243b582af5051840e1a258e74963383bdcb377691cbb5aac2fbec083096cd201aca8c677f0a637ab793b3aa762fb02f5aa7767e710469bc39f0a8a0
7
- data.tar.gz: 894d7350c1438462826073b48a7db77889466aa7d122b991c2c4bb212a12177bab53095a76d9a2e4444a355f6b5343b0f1d7be008c347fdc84f9df52f60924f8
6
+ metadata.gz: eae38aaec6ee444c7652de6ea7792fb21299ba8cc970ed74441a241810a46a408c90ce01310d5c832a6e212e1a566560d1b38f098c3e15cb507372831a5b3337
7
+ data.tar.gz: ba50432c6fe3a54e2bb77f2b527f2c6b162b7fcd2febbf008cab773658447c0a9f585aa903c3f7eadff43f0cdffedb61844e5c3919216b32e3460feb4f60375a
@@ -126,7 +126,7 @@ module Metanorma
126
126
  file = File.join(@localdir,
127
127
  @boilerplateauthority)
128
128
  end
129
- (!file.nil? and File.exists?(file)) or return
129
+ (!file.nil? and File.exist?(file)) or return
130
130
  conv.populate_template(File.read(file, encoding: "UTF-8"), nil)
131
131
  end
132
132
 
@@ -64,7 +64,7 @@ module Metanorma
64
64
 
65
65
  def max_td_count(table)
66
66
  max = 0
67
- table.xpath(".//tr").each do |tr|
67
+ table.xpath("./tr").each do |tr|
68
68
  n = tr.xpath("./td | ./th").size
69
69
  max < n and max = n
70
70
  end
@@ -72,8 +72,8 @@ module Metanorma
72
72
  end
73
73
 
74
74
  def maxrowcols_validate(table, maxcols)
75
- cells2d = table.xpath(".//tr").each_with_object([]) { |_r, m| m << {} }
76
- table.xpath(".//tr").each_with_index do |tr, r|
75
+ cells2d = table.xpath("./*/tr").each_with_object([]) { |_r, m| m << {} }
76
+ table.xpath("./*/tr").each_with_index do |tr, r|
77
77
  curr = 0
78
78
  tr.xpath("./td | ./th").each do |td|
79
79
  curr = maxcols_validate1(td, r, curr, cells2d, maxcols)
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.0.5.2".freeze
22
+ VERSION = "2.0.5.3".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5.2
4
+ version: 2.0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor