Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 30, 2023
1 parent 22b0db0 commit 0c0defe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/html2doc/math.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def mathml_to_ooml1(xml, docnamespaces)
doc.root = ooxml_cleanup(xml, docnamespaces)
# ooxml = @xsltemplate.transform(doc)
d = xml.parent["block"] != "false" # display_style
ooxml = Nokogiri::XML(Plurimath::Math.parse(doc.to_xml(indent: 0), :mathml).to_omml.gsub(" ", " "))
warn doc.to_xml
ooxml = Nokogiri::XML(Plurimath::Math.parse(doc.to_xml(indent: 0), :mathml).to_omml)
warn ooxml.to_xml
ooxml = unitalic(accent_tr(ooxml))
ooxml = ooml_clean(uncenter(xml, ooxml))
xml.swap(ooxml)
Expand Down

0 comments on commit 0c0defe

Please sign in to comment.