www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8fb4157eb11e476e675486e8ac9d1a1a4074ce15
parent d26490a4db7b9dfaab54fde1dfabbf025a57a923
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 10 Feb 2014 09:34:59 -0500

Make U+00A0 act as space in math mode.  Resolves issue #377.

Diffstat:
Munpacked/jax/input/TeX/jax.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -424,6 +424,7 @@ '%': 'Comment', '&': 'Entry', '#': 'Hash', + '\u00A0': 'Space', '\u2019': 'Prime' }, @@ -946,6 +947,7 @@ not: 'Not', dots: 'Dots', space: 'Tilde', + '\u00A0': 'Tilde', // LaTeX @@ -1807,7 +1809,7 @@ * Check if the next character is a space */ nextIsSpace: function () { - return this.string.charAt(this.i).match(/[ \n\r\t]/); + return this.string.charAt(this.i).match(/\s/); }, /*