html2doc 1.5.1 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 014c86a7c0add074f682133c9612482a5ec6d48e6bd84d261efe1bbf01492434
4
- data.tar.gz: 7af840d88c2963846652a8baaf5b3a3243fd833becda6315200749a438a778a8
3
+ metadata.gz: 04a1333f7d9f29c2bbc2ccb608b0db8fb371a804caecc9e9819020e1e3cffc6f
4
+ data.tar.gz: 99e3c17fdab490221462675c16c0b7b5980932c44fbe5f135f97967c1bc27e3f
5
5
  SHA512:
6
- metadata.gz: bcc3425f023a13639f57728cfb796da4b56e51b99c700f1251668609e44217d2c9131c063c5526621e6ec6be07274b7e97d841e43a76c9900d6898c37d82ddf2
7
- data.tar.gz: 0c28ae213c04e4d3d9bfe01cbcd9455773e584bf98a0067c85403d87ac19e7cec38ce02bcf68762d9701e6c180f692b19ca69c1b45aa28d95d78be57e99d42f2
6
+ metadata.gz: eaec47e79e56196c02f7282a1d1b7ffdaf8b12ea1609bac6b3de11eae2c0a3792c146e8cf17222a0b16d48b93aed31d7c11ebb7d2c3b4b0e303f2a87342cf66e
7
+ data.tar.gz: 5f4ad050a690f096e220cb39c60eb11d4cb84eae0c79af61e8c9598438b05d307f87a8b90a6b5f8e530331ba41c5770d9537f8b65f03f43353978630cc4de56d
data/lib/html2doc/math.rb CHANGED
@@ -7,7 +7,7 @@ require "plane1converter"
7
7
  class Html2Doc
8
8
  def asciimath_to_mathml1(expr, retain_asciimath)
9
9
  ret = Plurimath::Math.parse(HTMLEntities.new.decode(expr), "asciimath").to_mathml
10
- .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>")
10
+ .gsub(/<math>/, "<math xmlns='http://www.w3.org/1998/Math/MathML'>").strip
11
11
  retain_asciimath and
12
12
  ret += "<asciimath>#{@c.encode(@c.decode(expr), :basic)}</asciimath>"
13
13
  ret
@@ -1,3 +1,3 @@
1
1
  class Html2Doc
2
- VERSION = "1.5.1".freeze
2
+ VERSION = "1.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.