www

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

commit 66ebcf2c460e174e448c8893c33d80131163e39a
parent 4c28f5f7c6e23ed24f3bc75aa894a1df3c10e9d2
Author: Frédéric Wang <fred.wang@free.fr>
Date:   Thu, 21 Mar 2013 17:32:46 +0100

Fix a processing error when an empty <mo> is used as a fence. #359

Diffstat:
Munpacked/jax/input/MathML/jax.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/input/MathML/jax.js b/unpacked/jax/input/MathML/jax.js @@ -164,8 +164,8 @@ var first = mml.data[0], last = mml.data[mml.data.length-1]; if (first.type === "mo" && first.fence && last.type === "mo" && last.fence) { - mml.open = first.data[0].data[0]; - mml.close = last.data[0].data[0]; + if (first.data[0]) {mml.open = first.data[0].data[0]} + if (last.data[0]) {mml.close = last.data[0].data[0]} } } },