brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
961 stars 101 forks source link

Extra safety when unreading alignment-related characters for \aligned #2384

Closed dginev closed 3 months ago

dginev commented 3 months ago

Fixes #2383 . Quite subtle, but I think I got it - I can make the minimal example from the issue into a test if preferred.

Details: The key problem was that when the ->unread of a { happened, the actual aligned state got modified, rather than the "safely neutralized" local state, which appears to be the primary purpose of this parameter type.

brucemiller commented 3 months ago

Your observations seem right, and this patch doesn't cause any surprises that I can detect. Thanks!