Skip to content

Commit

Permalink
remove space after MatML for inline rendering: metanorma/iso-2533#22
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 20, 2024
1 parent 039d4e0 commit cb69226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metanorma/standoc/cleanup_maths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def asciimath2mathml(xml)
def asciimath2mathml_indiv(elem)
elem["type"] = "MathML"
expr = @c.decode(elem.text)
ret = asciimath_parse(expr, elem)
ret = asciimath_parse(expr, elem).strip
ret += "<asciimath>#{@c.encode(expr, :basic)}</asciimath>"
elem.children = ret
rescue StandardError => e
Expand Down

0 comments on commit cb69226

Please sign in to comment.