metanorma-standoc 3.5.30 → 3.5.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/metanorma/cleanup/asciibib.rb +8 -2
- data/lib/metanorma/standoc/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: c2d7915082c5cae65f0681e72ac3815bbcfd88df1102fc1079f28decbd894821
|
|
4
|
+
data.tar.gz: 521849313742749ba454b7cb28405a7515b0c22206a26f6785dc1b36c7e02d12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d6074cadae2db8fd2c0100dbc810f8ba5e6e6fa6d9cc7c82bb80f875d8dc37b83e67ae6405b155721489e53f2cb07c475041059356c96167e5454fa5c7a2df9
|
|
7
|
+
data.tar.gz: cbf8d42004aacef8246c7f82940e6a433cc84a95ca5e1a6a800cbfe67821d0ae56c073b99afcceab4e9efc90a9830319ad2a83b0346e3a6efc5a80549a10fea6
|
|
@@ -27,10 +27,16 @@ module Metanorma
|
|
|
27
27
|
# string instead.
|
|
28
28
|
def ref_dl_cleanup_id(bibitem, clause, authored_id = nil)
|
|
29
29
|
bibitem["anchor"] = bibitem["id"]
|
|
30
|
-
|
|
30
|
+
# the authored id:: is the citation target and wins over the
|
|
31
|
+
# clause's derived heading anchor: AsciiBib includes pull a
|
|
32
|
+
# foreign draft's bibitems in, and their heading ids must not
|
|
33
|
+
# shadow the authored ids the citations name (metanorma-
|
|
34
|
+
# standoc#1412 follow-up)
|
|
35
|
+
if authored_id && !authored_id.empty?
|
|
31
36
|
bibitem["anchor"] = authored_id
|
|
32
|
-
clause["anchor"] && !/^_/.match(clause["anchor"])
|
|
37
|
+
elsif clause["anchor"] && !/^_/.match?(clause["anchor"])
|
|
33
38
|
bibitem["anchor"] = clause["anchor"]
|
|
39
|
+
end
|
|
34
40
|
add_id(bibitem)
|
|
35
41
|
end
|
|
36
42
|
|