Skip to content

Fix XML syntax error in groupChrPr closing tags#4

Open
prashanthjaganathan wants to merge 1 commit intoamedama41:masterfrom
prashanthjaganathan:fix-groupchrpr-closing-tags
Open

Fix XML syntax error in groupChrPr closing tags#4
prashanthjaganathan wants to merge 1 commit intoamedama41:masterfrom
prashanthjaganathan:fix-groupchrpr-closing-tags

Conversation

@prashanthjaganathan
Copy link
Copy Markdown

Description

Fixes #2

This PR corrects XML syntax errors in the MUnder and MOver classes where </m:groupChr> was incorrectly used to close <m:groupChrPr> tags.

Changes

  • Fixed line 750: Changed </m:groupChr> to </m:groupChrPr> in MUnder.to_str()
  • Fixed line 787: Changed </m:groupChr> to </m:groupChrPr> in MOver.to_str()
  • Added test case for vector operator (\vec{AB})
  • Added test case for underscript with stretchy accent

Issue

The bug caused lxml.etree.XMLSyntaxError when processing MathML with stretchy accents like the vector operator:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: groupChrPr line xxxx and groupChr...

1 participant