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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 981c1b0638a7137a7820962c95cde1ced5ef159fa309d5c9f60999a4b62743a5
4
- data.tar.gz: d819ce6fd9b8cb2552652f20e8f5e59013795dbe1f73f1754610bfda7325cfdf
3
+ metadata.gz: 1bbfe742d2c836876f6c40d98f8c0a5a70d5c642dd2a8582ee0f176f242161ee
4
+ data.tar.gz: 59b54ecbc16be43e5f8c415f02da2e078c49a1840c1db8de930d508753dbb28b
5
5
  SHA512:
6
- metadata.gz: 15e00f5f1990e31e7bf46f9cb1bc8dc4fe2697ee75abe87e1bf08871e8766cb55334d350036e71c3cc0801c4ccd6df4ea392f7aed0c101ef6224498d83d134eb
7
- data.tar.gz: f5073b2bd2a4ef3aedec9e3bffe6b7c9e24d667bab345a9943d1bd3499dba820f6eab6f58620f23e31373414fbdd768309d9abf310c9ca19a9db9214f604cbf4
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&.name != "p" and parse(para, div)
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
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.7.26".freeze
2
+ VERSION = "3.7.28".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.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-28 00:00:00.000000000 Z
11
+ date: 2026-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64