Skip to content

Commit 13a7b7f

Browse files
committed
Check that UseSansSerif is set to something valid.
Also update CHANGES.rst for this change
1 parent 778e8ab commit 13a7b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mathics/builtin/inout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ def apply_mathml(self, expr, evaluation) -> Expression:
20782078
query = evaluation.parse("Settings`$UseSansSerif")
20792079
usesansserif = query.evaluate(evaluation).to_python()
20802080
if not is_a_picture:
2081-
if usesansserif:
2081+
if isinstance(usesansserif, bool) and usesansserif:
20822082
xml = '<mstyle mathvariant="sans-serif">%s</mstyle>' % xml
20832083

20842084
mathml = '<math display="block">%s</math>' % xml # convert_box(boxes)

0 commit comments

Comments
 (0)