isodoc 2.0.8.1 → 2.0.8.2
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 +11 -10
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/postprocess.rb +1 -0
- 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: 391849b43509b58e8e08eb2ab4e2922cdb3c6ac21ac287110518078b73601465
|
4
|
+
data.tar.gz: 8b15f3e7f8c608c0521c3347616a6ea2df7d09092d3830c2bd71f58ea23a95fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7b97e099260821ec96ec660c2bfa180dff43f2c3b186a2fa42ddebeb5052fe19904afbd62b28215caedeab4f5184c3fbee89171b3fd3a9759e91329bbbfc16
|
7
|
+
data.tar.gz: 53584cc076ed6b5537c592e4c750f069ba5ef69159c8ecabfe787968b5af4024b61868e1e98b7fbf1d03975980087b89557e2fe252e3a74cb42844bcd684ab6c
|
data/lib/isodoc/css.rb
CHANGED
@@ -29,10 +29,10 @@ module IsoDoc
|
|
29
29
|
@wordstylesheet = generate_css(localpath(@wordstylesheet_name), false)
|
30
30
|
@standardstylesheet =
|
31
31
|
generate_css(localpath(@standardstylesheet_name), false)
|
32
|
-
@htmlstylesheet_override_name and
|
33
|
-
File.open(localpath(@htmlstylesheet_override_name))
|
34
|
-
@wordstylesheet_override_name and
|
35
|
-
File.open(localpath(@wordstylesheet_override_name))
|
32
|
+
@htmlstylesheet_override_name and
|
33
|
+
@htmlstylesheet_override = File.open(localpath(@htmlstylesheet_override_name))
|
34
|
+
@wordstylesheet_override_name and
|
35
|
+
@wordstylesheet_override = File.open(localpath(@wordstylesheet_override_name))
|
36
36
|
end
|
37
37
|
|
38
38
|
def default_fonts(_options)
|
@@ -80,12 +80,12 @@ module IsoDoc
|
|
80
80
|
|
81
81
|
[File.join(Gem.loaded_specs["isodoc"].full_gem_path,
|
82
82
|
"lib", "isodoc"),
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
83
|
+
File.dirname(filename)].each do |name|
|
84
|
+
SassC.load_paths << name
|
85
|
+
end
|
86
|
+
SassC::Engine.new(scss_fontheader(stripwordcss) + stylesheet,
|
87
|
+
syntax: :scss, importer: SasscImporter)
|
88
|
+
.render
|
89
89
|
end
|
90
90
|
|
91
91
|
# stripwordcss if HTML stylesheet, !stripwordcss if DOC stylesheet
|
@@ -96,6 +96,7 @@ module IsoDoc
|
|
96
96
|
stylesheet = File.read(filename, encoding: "UTF-8")
|
97
97
|
stylesheet = populate_template(stylesheet, :word)
|
98
98
|
stylesheet.gsub!(/(\s|\{)mso-[^:]+:[^;]+;/m, "\\1") if stripwordcss
|
99
|
+
stylesheet.gsub!(/--/, "-DOUBLE_HYPHEN_ESCAPE-") unless stripwordcss
|
99
100
|
if File.extname(filename) == ".scss"
|
100
101
|
stylesheet = convert_scss(filename, stylesheet, stripwordcss)
|
101
102
|
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: 2.0.8.
|
4
|
+
version: 2.0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|