isodoc 2.0.8.1 → 2.0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a736ad455159e993e2c100d8ac3cd67a09c07705dad2fab7f30c8995636a55d8
4
- data.tar.gz: b600c452fe5bac0622c27ab05ca4156c46caaea6f56d0cebc2d76b9377c3ae2a
3
+ metadata.gz: 391849b43509b58e8e08eb2ab4e2922cdb3c6ac21ac287110518078b73601465
4
+ data.tar.gz: 8b15f3e7f8c608c0521c3347616a6ea2df7d09092d3830c2bd71f58ea23a95fc
5
5
  SHA512:
6
- metadata.gz: 6e534774023bcb0212a72808f5167633ecce14af71aaa506388385c5e458fd41a87bb927d87546a3b3a709021d41d1592c99cd008caab5f652023543820137ad
7
- data.tar.gz: 9b8dfa80516811e6aa87d0cfc80ac3ad79c26eaf61edf6366b12a89c30b429d0b96e15fc7970c0ada89ce8d94ebbc08a330af41dcb5185baa7245a05f1f1a8d7
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 @htmlstylesheet_override =
33
- File.open(localpath(@htmlstylesheet_override_name))
34
- @wordstylesheet_override_name and @wordstylesheet_override =
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
- 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
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
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.0.8.1".freeze
2
+ VERSION = "2.0.8.2".freeze
3
3
  end
@@ -39,6 +39,7 @@ module IsoDoc
39
39
 
40
40
  def toWord(result, filename, dir, header)
41
41
  result = from_xhtml(word_cleanup(to_xhtml(result)))
42
+ .gsub(/-DOUBLE_HYPHEN_ESCAPE-/, "--")
42
43
  @wordstylesheet = wordstylesheet_update
43
44
  Html2Doc.process(
44
45
  result,
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath