Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autoloading when macro name is followed by a space. (mathjax/MathJax#2580) #566

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Dec 9, 2020

If an autoloading macro is followed by a space, the space is lost when the macro name is reprocessed, and so the macro can become incorrect if it is followed by other tex. For example, \ce C ends up as \ceC after the autoload. This PR replaces the missing space (that was removed during the initial parsing for the macro name, and will be removed again when it is re-parsed).

Resolves issue mathjax/MathJax#2580.

@dpvc dpvc requested a review from zorkow December 9, 2020 19:25
@dpvc dpvc added this to the 3.1.3 milestone Jan 31, 2021
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit 9512365 into develop Feb 9, 2021
@dpvc dpvc deleted the issue2580 branch February 9, 2021 16:55
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.

2 participants