Skip to content

Fix problems with defining \ (control-space). #1563 and #1564 #1565

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

Merged
merged 1 commit into from
Jul 23, 2016

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jul 21, 2016

Make \def, \let, and \newcommand handle '\ ' properly. Make \let set a control sequence to an undefined control sequence. Resolves issues #1563 and #1564.

…a control sequence to an undefined control sequence. Resolves issues mathjax#1563 and mathjax#1564.
@dpvc dpvc added this to the MathJax v2.7.0 milestone Jul 21, 2016
if (TEXDEF.delimiter["\\"+name] != null) {macro = ["csDelimiter",TEXDEF.delimiter["\\"+name]]}
if (TEXDEF.mathchar0mi[name]) {macro = ["csMathchar0mi",TEXDEF.mathchar0mi[name]]} else
if (TEXDEF.mathchar0mo[name]) {macro = ["csMathchar0mo",TEXDEF.mathchar0mo[name]]} else
if (TEXDEF.mathchar7[name]) {macro = ["csMathchar7",TEXDEF.mathchar7[name]]} else
Copy link
Member

Choose a reason for hiding this comment

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

This is all just whitespace change. See my comments on tabs earlier...

Copy link
Member Author

@dpvc dpvc Jul 23, 2016

Choose a reason for hiding this comment

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

Yes, there was a space added before the else so the they lined up with the new one in the line below. This wasn't due to tabbing, but to actual space changes.

@zorkow
Copy link
Member

zorkow commented Jul 23, 2016

lgtm

@dpvc dpvc merged commit 4db3f74 into mathjax:develop Jul 23, 2016
@dpvc dpvc deleted the issue1563 branch August 5, 2016 15:26
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