isodoc 2.12.4 → 2.12.6

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: 48457f7d76baef2d4d349f569e3ee43049253bc9955d50f5c6584d9e8fa2367b
4
+ data.tar.gz: d87899d14231920e9f2709f2ed5101049e3f0132e2f43f76a67e704c82b91309
5
5
  SHA512:
6
- metadata.gz: 8887270801615a50b39b308644976166136265d602a8e2f700f674d98d7dca2dd9e69e68bd651abdd7b1562b3f2247e3f8ca7e8848f85aabc3e8043ad5597974
7
- data.tar.gz: ad45cc96bbe912728e721d0e5384cd35be77c0eba4efebd7484cae0fc670595a0c8afa59c437e046f334a1a96ed006ce69d8ac4274d2c3c8ae6892462d630fad
6
+ metadata.gz: c9f54cf72607cca29215845a2f36ca6de3a74d91a97f002157cf8c09a5baeaf37b2b71dddf2eb91eef3b1ea1c4677ebfc3f3cbfc4fee7bc97cc5d1537b43f925
7
+ data.tar.gz: f0923719cd684e18c2879de8d1477c17b05fb5b3c5e2597a8189371db49aa59c531a863f96808dcc546b5bd709f3799b3dedac6dc3cf9b96ce5aeef25dda4c19
@@ -66,8 +66,10 @@ module IsoDoc
66
66
  end
67
67
 
68
68
  def nearest_block_parent(node)
69
- until %w(p title td th name formula li dt dd sourcecode pre quote
70
- note example target clause annex term appendix bibdata)
69
+ until %w(p fmt-title td th fmt-name formula li dt dd sourcecode pre quote
70
+ formattedref note example target clause annex term appendix
71
+ bibdata references termnote termexample term terms sourcecode
72
+ figure admonition)
71
73
  .include?(node.name)
72
74
  node = node.parent
73
75
  end
@@ -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.6".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.6
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