metanorma-iho 1.0.10 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iho/xref.rb +5 -3
- data/lib/metanorma/iho/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b56165b5e08727c7f6330a2735c03055bb1163ca9a430f9583ebe690c65b8937
|
4
|
+
data.tar.gz: 5d05b8aa31ad47e8d1fe70e2a5cb0d77c115288f63082ce1e44309e2c17a2de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70708bbb275aba3a1048b3fc4a5e9b10ef320e9e69f2918bc34ff18183ea8422ad820f95a1fa382daf49712dde8f955bfbff7c095c1ad379bdaad970a45c991c
|
7
|
+
data.tar.gz: 1220d214df2aae98c3d037c327b433d109379954b7a9d9a838ee8c14fdc3c118a949fa3e69c451ecc11d54767bdb48dcc979718b8e6792cb6ed98597ca28d00d
|
data/lib/isodoc/iho/xref.rb
CHANGED
@@ -32,15 +32,17 @@ module IsoDoc
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def annex_names_recurse(clause, num)
|
35
|
-
@klass.single_term_clause?(clause)
|
36
|
-
|
37
|
-
num.to_s, 1)
|
35
|
+
if @klass.single_term_clause?(clause)
|
36
|
+
annex_names1(clause.at(ns("./references | ./terms | ./definitions")),
|
37
|
+
nil, num.to_s, 1)
|
38
|
+
else
|
38
39
|
i = Counter.new
|
39
40
|
clause.xpath(ns("./clause | ./references | ./terms | ./definitions"))
|
40
41
|
.each do |c|
|
41
42
|
i.increment(c)
|
42
43
|
annex_names1(c, semx(clause, num), i.print, 2)
|
43
44
|
end
|
45
|
+
end
|
44
46
|
end
|
45
47
|
|
46
48
|
# avoid ambiguity of Table 1-1 being in Appendix 1 or Clause 1
|