isodoc 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/convert.rb +4 -9
- 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: 8c7c8cd474b9df23e50d6f4f606bfccf2ed246dae1f020b5df2c6dfc3d06ebaa
|
4
|
+
data.tar.gz: 3a4e90f29696b21966b76422d757360f949d2d57b9435caa43a318515d353430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '090f97f36021765785b5b6600b6086b00654276b151485f3052484af051fd244ad8bc229a641d8dda61d8da2d347f2c94129362cc4274be4101f8815aa5546f3'
|
7
|
+
data.tar.gz: ec0e7c2dca7e3313c5931454e787c8bbdebb68eb4a5f682ade46e667f45fe413481df2b850bb74fd6bc8f11496ed128c9131396fcaac265dc2dcb76047aed66b
|
data/lib/isodoc/convert.rb
CHANGED
@@ -38,15 +38,9 @@ module IsoDoc
|
|
38
38
|
@options = options
|
39
39
|
@files_to_delete = []
|
40
40
|
@tempfile_cache = []
|
41
|
-
@htmlstylesheet_name =
|
42
|
-
|
43
|
-
|
44
|
-
@wordstylesheet_name = precompiled_style_or_original(
|
45
|
-
options[:wordstylesheet]
|
46
|
-
)
|
47
|
-
@standardstylesheet_name = precompiled_style_or_original(
|
48
|
-
options[:standardstylesheet]
|
49
|
-
)
|
41
|
+
@htmlstylesheet_name = options[:htmlstylesheet]
|
42
|
+
@wordstylesheet_name = options[:wordstylesheet]
|
43
|
+
@standardstylesheet_name = options[:standardstylesheet]
|
50
44
|
@header = options[:header]
|
51
45
|
@htmlcoverpage = options[:htmlcoverpage]
|
52
46
|
@wordcoverpage = options[:wordcoverpage]
|
@@ -180,6 +174,7 @@ module IsoDoc
|
|
180
174
|
def generate_css(filename, stripwordcss)
|
181
175
|
return nil if filename.nil?
|
182
176
|
|
177
|
+
filename = precompiled_style_or_original(filename)
|
183
178
|
stylesheet = File.read(filename, encoding: 'UTF-8')
|
184
179
|
stylesheet = populate_template(stylesheet, :word)
|
185
180
|
stylesheet.gsub!(/(\s|\{)mso-[^:]+:[^;]+;/m, '\\1') if stripwordcss
|
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: 1.1.
|
4
|
+
version: 1.1.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: 2020-07-
|
11
|
+
date: 2020-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|