isodoc 3.7.26 → 3.7.27

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: 981c1b0638a7137a7820962c95cde1ced5ef159fa309d5c9f60999a4b62743a5
4
- data.tar.gz: d819ce6fd9b8cb2552652f20e8f5e59013795dbe1f73f1754610bfda7325cfdf
3
+ metadata.gz: 6bd9655ddbd59430b936707386eb40c25b1307ed261b2371be49283f9fbfe4f2
4
+ data.tar.gz: c602b4cd0a5fdd6698ef700506520bcebf2f8c7eea219d21745c8bcaf44ac09b
5
5
  SHA512:
6
- metadata.gz: 15e00f5f1990e31e7bf46f9cb1bc8dc4fe2697ee75abe87e1bf08871e8766cb55334d350036e71c3cc0801c4ccd6df4ea392f7aed0c101ef6224498d83d134eb
7
- data.tar.gz: f5073b2bd2a4ef3aedec9e3bffe6b7c9e24d667bab345a9943d1bd3499dba820f6eab6f58620f23e31373414fbdd768309d9abf310c9ca19a9db9214f604cbf4
6
+ metadata.gz: 2cb5b12fa9813e8b99d40d66806562893cf3d1364da11906b3ac09645c856b74632027f0d0cf5d29d3c42615ada141ffc6a44700ff09f921eff43e3edf1f792e
7
+ data.tar.gz: 4025281005795810e9368c0c7758f746c37816041664ee9001878aec71ca9b9b7ab8f2a16e20045bb2f55263795e1e9829127867388e70938c16b90a9e040a7b
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")
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.7.26".freeze
2
+ VERSION = "3.7.27".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: 3.7.26
4
+ version: 3.7.27
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-28 00:00:00.000000000 Z
11
+ date: 2026-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64