From 0a4da7e3b4665830a49dcae82d7d8b868c7aaaee Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 25 Aug 2015 15:13:16 -0400 Subject: [PATCH] Do quotes and text in one shot, like HTML-CSS and SVG (resolves some problems with the ms tests in the test suite). --- unpacked/jax/output/CommonHTML/autoload/ms.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/ms.js b/unpacked/jax/output/CommonHTML/autoload/ms.js index ddd702230..798730662 100644 --- a/unpacked/jax/output/CommonHTML/autoload/ms.js +++ b/unpacked/jax/output/CommonHTML/autoload/ms.js @@ -50,11 +50,9 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { if (values.rquote === "\u201D" && values.mathvariant === "monospace") values.rquote = '"'; // // Add the left quote, the child nodes, and the right quote - // FIXME: should the quotation marks be in MML.VARIANT.NORMAL? // - this.CHTMLhandleText(node,values.lquote,this.CHTMLvariant); - for (var i = 0, m = this.data.length; i < m; i++) this.CHTMLaddChild(node,i,{}); - this.CHTMLhandleText(node,values.rquote,this.CHTMLvariant); + var text = values.lquote+this.data.join("")+values.rquote; // FIXME: handle mglyph? + this.CHTMLhandleText(node,text,this.CHTMLvariant); // // Finish the bbox, add any needed space and color //