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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dc54789f419f00172644d6e4a9fe3bbba74e962ff0abd452ef4f2ad4277c695
|
4
|
+
data.tar.gz: 0f76a11d0488e02438a625f8b0d050a1ce5199e209af3e5a3eb392834c996c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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("
|
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("
|
76
|
-
table.xpath("
|
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)
|
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.
|
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-
|
11
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|