Skip to content

Commit

Permalink
https://github.com/metanorma/metanorma-ieee/issues/442
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Dec 10, 2024
1 parent b7b22e1 commit 88b8783
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asciimath2unitsml.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "asciimath"
spec.add_dependency "htmlentities"
spec.add_dependency "nokogiri", "~> 1"
spec.add_dependency "nokogiri", "<= 1.16.8"
spec.add_dependency "rsec", "~> 1.0.0"

spec.add_development_dependency "bundler"
Expand Down
2 changes: 1 addition & 1 deletion lib/asciimath2unitsml/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Asciimath2UnitsML
VERSION = "0.4.3".freeze
VERSION = "0.4.4".freeze
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def xmlpp(xml)
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsml:copy-of select="."/>
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
XSL
Nokogiri::XSLT(xsl).transform(Nokogiri::XML(xml))
Nokogiri::XSLT(xsl).transform(Nokogiri::XML(xml, &:noblanks))
.to_xml(indent: 2, encoding: "UTF-8")
end

0 comments on commit 88b8783

Please sign in to comment.