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

The \verb macro loses leading and trailing spaces, and multiple spaces #381

Closed
dpvc opened this issue Jan 27, 2013 · 6 comments

Comments

Projects
None yet
3 participants
@dpvc
Copy link
Member

commented Jan 27, 2013

The \verb macro passes its argument to <mtext> verbatim, but <mtex> removes leading and trailing spaces, and collapses multiple spaces.

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jan 27, 2013

This issue is easily fixed by replacing spaces with non-breaking spaces before passing the string to <mtext>.

@ghost ghost assigned dpvc Feb 11, 2013

@fred-wang

This comment has been minimized.

Copy link
Contributor

commented Mar 25, 2013

The test will be

LaTeXToMathML/verb-2.html

=> In testsuite

dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 16, 2013

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Apr 16, 2013

The issue381 branch of my fork of MathJax includes the fix.

@fred-wang

This comment has been minimized.

Copy link
Contributor

commented Apr 19, 2013

=> Ready for Release

dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 19, 2013

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Apr 19, 2013

=> Merged

@dpvc dpvc closed this May 17, 2013

@novoselt

This comment has been minimized.

Copy link

commented Jun 18, 2013

For me everything works with SVG rendering, but not HTML-CSS, where multiple spaces inside of verb are too small - less than half of their spaces, which seems to be related to #380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.