Skip to content

Commit 28afef1

Browse files
committed
mglyph messages: pass the def to the MML.Error function. #627
1 parent 5828d63 commit 28afef1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

unpacked/jax/output/HTML-CSS/autoload/mglyph.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
4545
} else {
4646
if (values.alt === "")
4747
{values.alt = LOCALE._(["MathML","BadMglyphFont"],"Bad font: %1",font.family)}
48-
err = MML.Error(values.alt).With({mathsize:"75%"});
48+
err = MML.Error(values.alt,{mathsize:"75%"});
4949
this.Append(err); err.toHTML(span); this.data.pop();
5050
span.bbox = err.HTMLspanElement().bbox;
5151
}
@@ -63,8 +63,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
6363
}
6464
if (this.img.status !== "OK") {
6565
err = MML.Error(
66-
LOCALE._(["MathML","BadMglyph"],"Bad mglyph: %1",values.src)
67-
).With({mathsize:"75%"});
66+
LOCALE._(["MathML","BadMglyph"],"Bad mglyph: %1",values.src),
67+
{mathsize:"75%"});
6868
this.Append(err); err.toHTML(span); this.data.pop();
6969
span.bbox = err.HTMLspanElement().bbox;
7070
} else {

unpacked/jax/output/SVG/autoload/mglyph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
7575
}
7676
if (this.img.status !== "OK") {
7777
err = MML.Error(
78-
LOCALE._(["MathML","BadMglyph"],"Bad mglyph: %1",values.src)
79-
).With({mathsize:"75%"});
78+
LOCALE._(["MathML","BadMglyph"],"Bad mglyph: %1",values.src),
79+
{mathsize:"75%"});
8080
this.Append(err); svg = err.toSVG(); this.data.pop();
8181
} else {
8282
var mu = this.SVGgetMu(svg);

0 commit comments

Comments
 (0)