isodoc 3.7.26 → 3.7.28
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/isodoc/css.rb +12 -3
- data/lib/isodoc/function/terms.rb +3 -1
- data/lib/isodoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bbfe742d2c836876f6c40d98f8c0a5a70d5c642dd2a8582ee0f176f242161ee
|
|
4
|
+
data.tar.gz: 59b54ecbc16be43e5f8c415f02da2e078c49a1840c1db8de930d508753dbb28b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2191755a7cffff1ae232d205e7dafbe3359e34a602cefa018a2851c4d5789a33e12dc2ab3c8ee695f6331f3ee5f3503a84114b5734a3b5592b53d6807771987b
|
|
7
|
+
data.tar.gz: c476a18a7bec93289fe77870b3830152d5f551d9675faf88736f527f76b2de8541e7b62e9ee5af3514ac5a3b3559d70520927ebd4819af7c83ba8502602e2077
|
data/lib/isodoc/css.rb
CHANGED
|
@@ -61,10 +61,19 @@ module IsoDoc
|
|
|
61
61
|
}
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
# Font names reach font-family declarations through SCSS variables;
|
|
65
|
+
# a raw multi-word name ("Source Sans 3") or a stack ("Arial, sans-serif")
|
|
66
|
+
# emits unquoted and browsers reject or mis-parse it. Quote unless the
|
|
67
|
+
# flavor already brings its own quoting.
|
|
68
|
+
def quote_css_font(value)
|
|
69
|
+
v = value.to_s.strip
|
|
70
|
+
v.start_with?("\"", "'") ? v : "\"#{v}\""
|
|
71
|
+
end
|
|
72
|
+
|
|
64
73
|
def scss_fontheader(is_html_css)
|
|
65
|
-
b = options[:bodyfont] || "Arial"
|
|
66
|
-
h = options[:headerfont] || "Arial"
|
|
67
|
-
m = options[:monospacefont] || "Courier New"
|
|
74
|
+
b = quote_css_font(options[:bodyfont] || "Arial")
|
|
75
|
+
h = quote_css_font(options[:headerfont] || "Arial")
|
|
76
|
+
m = quote_css_font(options[:monospacefont] || "Courier New")
|
|
68
77
|
ns = options[:normalfontsize] || (is_html_css ? "1.0em" : "12.0pt")
|
|
69
78
|
ms = options[:monospacefontsize] || (is_html_css ? "0.8em" : "11.0pt")
|
|
70
79
|
ss = options[:smallerfontsize] || (is_html_css ? "0.9em" : "10.0pt")
|
|
@@ -82,7 +82,9 @@ module IsoDoc
|
|
|
82
82
|
end
|
|
83
83
|
para&.name == "p" and children_parse(para, p)
|
|
84
84
|
end
|
|
85
|
-
para
|
|
85
|
+
# para is nil for a termnote whose block body has no elements;
|
|
86
|
+
# the name-based guard must not pass that nil into parse.
|
|
87
|
+
para and para.name != "p" and parse(para, div)
|
|
86
88
|
end
|
|
87
89
|
|
|
88
90
|
def semx_termref_parse(node, out); end
|
data/lib/isodoc/version.rb
CHANGED
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: 3.7.
|
|
4
|
+
version: 3.7.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|