isodoc 2.12.4 → 2.12.5

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: 9cce87f92a79d85949dd4045c6f0aa3ffbfc756e40b1009c5da7b22debc155ed
4
- data.tar.gz: 9898a5ac1334fe15046908628ece00b8b1aa7010419c62d70a2cee3a3ee70974
3
+ metadata.gz: 12e415517517e0dfbf1589b1133b4604f61247f6cbe1898af9627b34c79e7e9a
4
+ data.tar.gz: 7504dee7698caa7cb112d4536400ca673b46b8ec8765f5797cc631e60effe0fa
5
5
  SHA512:
6
- metadata.gz: 8887270801615a50b39b308644976166136265d602a8e2f700f674d98d7dca2dd9e69e68bd651abdd7b1562b3f2247e3f8ca7e8848f85aabc3e8043ad5597974
7
- data.tar.gz: ad45cc96bbe912728e721d0e5384cd35be77c0eba4efebd7484cae0fc670595a0c8afa59c437e046f334a1a96ed006ce69d8ac4274d2c3c8ae6892462d630fad
6
+ metadata.gz: c66a622582ea1ce1c487864c75fcf3474122bca305066f53b74fb50750d23da1a78c6a8e90e301d0cd80ca175ab0f560126081468146e843b156db0ab4ae532b
7
+ data.tar.gz: '028b0c4a1d0a72f065c18dc70b130a3cf3fdf6b9ded4ef24eac2a758e3bdcad145f38b75af26a45eee72b4cd54b55eabea61c30a4af0bf58cc6befc738cfb3c7'
@@ -64,9 +64,8 @@ module IsoDoc
64
64
  lbl = @xrefs.anchor(elem["id"], :label, false)
65
65
  lbl and a = autonum(elem["id"], lbl)
66
66
  figname = figure_name(elem)
67
- if elem.parent.name == "figure"
67
+ (elem.parent.name == "figure") && a and
68
68
  a += subfigure_delim
69
- end
70
69
  lbl && figure_label?(elem) and s = "#{figname}#{a}"
71
70
  prefix_name(elem, { caption: figure_delim(elem) }, l10n(s&.strip), "name")
72
71
  end
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.12.4".freeze
2
+ VERSION = "2.12.5".freeze
3
3
  end
@@ -94,6 +94,7 @@ module IsoDoc
94
94
  end
95
95
 
96
96
  def fig_subfig_label(label, sublabel)
97
+ label && sublabel or return
97
98
  "#{label}#{subfigure_separator}#{sublabel}"
98
99
  end
99
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.4
4
+ version: 2.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64