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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09b9ac59a3825646955e0e54640b3b32bed31f3d483f36fc64cc5f81f73b5525'
4
- data.tar.gz: f2587825f5a8b05ba42d8f318279bb6fd5d1e86cba02bd77b5c49978c4894e1a
3
+ metadata.gz: c2d7915082c5cae65f0681e72ac3815bbcfd88df1102fc1079f28decbd894821
4
+ data.tar.gz: 521849313742749ba454b7cb28405a7515b0c22206a26f6785dc1b36c7e02d12
5
5
  SHA512:
6
- metadata.gz: 4c0b03cddebfc43f3427cf6af0807c74ad8c1821a279762340e97bb00a84d33a9f50747bd1f84848d182e4455c603137b98fa3579103f02e40ea625d70baddac
7
- data.tar.gz: ae98973848924caed8bab683dd34b57d9a2c809baf96a7168a7b07dc3cf9d3a9b39821ad99298f96cb5c2dfcc1f6d5026e5672ee20028a6b0c5fa32940b1331a
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
- authored_id && !authored_id.empty? and
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"]) and
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
 
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "3.5.30".freeze
22
+ VERSION = "3.5.31".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.30
4
+ version: 3.5.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.