From ce6b7290d62b689db162cf9b4a48bde8b0b34644 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Aug 2016 11:47:26 -0400 Subject: [PATCH] Fix regression with line breaks in CHTML in-line equations (equations would disappear). --- unpacked/jax/output/CommonHTML/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 823b7e64d..9b963570f 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -1748,7 +1748,7 @@ if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext); if (this.CHTML.pwidth) { node.parentNode.style.minWidth = this.CHTML.mwidth||CHTML.Em(this.CHTML.w); - node.parentNode.className += " mjx-full-width"; + node.parentNode.className = "mjx-full-width "+node.parentNode.className; } else if (!this.isMultiline && this.Get("display") === "block") { var values = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift"); if (values.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) values.indentalign = values.indentalignfirst;