isodoc 2.6.3 → 2.6.4

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: 7d77a199eaa1452ad1dd61e4db65e4a4eec3d7856942033c2e6f31019db08708
4
- data.tar.gz: 5f2bf413d05d58707097e3bb605c0b778088554c7238f5588102afbd6d07985a
3
+ metadata.gz: 7006fe8d8b97cf4224ddb1887323ed738c7710641451295fe87caf164e158059
4
+ data.tar.gz: 63926717876a67586dd1182af72a3c777690b7993f4b10b9b58fd09449a17739
5
5
  SHA512:
6
- metadata.gz: c7dc8fe34c7df07195377ff5c42e85b1597d5eb55e1c45951652f20521b16bf534f326c8e68a2058e4fa60b6b2f7bacbd5182da5488bca9ede76a4a9bfbb8c22
7
- data.tar.gz: e2834d76979c5ceffe4a10b2a8471f2178b0d850e8d4b8fab3b321fed52d4902cb10624a3b4e72c164a70b1520cda41ba27f241fae1f367404b192059eaf70da
6
+ metadata.gz: 30c171d99b4ca59293c0679ca8906c46bd21d5deba795a39f731c8705f53f2ec38bbd4f4c4b4578536e440088de8e67b985c75f057453d39bc89e4163b6351e1
7
+ data.tar.gz: 52a0c50bdd62a0a973905c71984bf19d12c4b9e9734cf804d89aabff958a922fb77ef0d62e98983fb44994afdfdc5c52d1a39628f88c606b970e52576ab8063c
@@ -7,7 +7,7 @@ module IsoDoc
7
7
  url = node["target"]
8
8
  node["update-type"] == "true" and url = suffix_url(url)
9
9
  out.a **attr_code(href: url, title: node["alt"]) do |l|
10
- if node.text.empty?
10
+ if node.elements.empty? && node.text.strip.empty?
11
11
  l << node["target"].sub(/^mailto:/, "")
12
12
  else node.children.each { |n| parse(n, l) }
13
13
  end
@@ -37,7 +37,7 @@ module IsoDoc
37
37
  end
38
38
 
39
39
  def xref_parse(node, out)
40
- target = if /#/.match?(node["target"])
40
+ target = if node["target"].include?("#")
41
41
  node["target"].sub("#", ".html#")
42
42
  else
43
43
  "##{node['target']}"
@@ -77,7 +77,9 @@ module IsoDoc
77
77
  img = emf_encode(img)
78
78
  img.children.first.previous = emf_to_svg(img)
79
79
  elsif img["mimetype"] == "image/svg+xml"
80
- src = svg_to_emf(img) and img << "<emf src='#{src}'/>"
80
+ src = svg_to_emf(img) or return
81
+ img.add_child("<emf/>")
82
+ img.elements.last["src"] = src
81
83
  end
82
84
  end
83
85
 
@@ -136,7 +138,6 @@ module IsoDoc
136
138
  File.exist?(file) and return Metanorma::Utils::datauri(file)
137
139
  file2 = uri + File.extname(file)
138
140
  warn "Checking #{file2}"
139
- warn `ls #{File.dirname(file2)}`
140
141
  File.exist?(file2) and return Metanorma::Utils::datauri(file2)
141
142
  raise %(Fail on #{exe} #{option} #{uri} outputting #{file}: status #{err})
142
143
  end
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.6.3".freeze
2
+ VERSION = "2.6.4".freeze
3
3
  end
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.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-11 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html2doc