Skip to content

Commit efc1a65

Browse files
committed
test
1 parent 71a5d82 commit efc1a65

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

mathics/builtin/graphics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2801,6 +2801,9 @@ def stylebox_style(style, specs):
28012801

28022802
new_style.set_option(name, create(style.graphics, expr))
28032803
else:
2804+
print("stylebox_style")
2805+
print("spec=", spec)
2806+
print("head_name=", head_name)
28042807
raise BoxConstructError
28052808
return new_style
28062809

mathics/core/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ def boxes_to_xml(self, **options) -> str:
13911391
is_style, options = self.process_style_box(options)
13921392
if is_style:
13931393
return self._leaves[0].boxes_to_xml(**options)
1394-
head = self._head.get_name()
1394+
head = self._head
13951395
name = self._head.get_name()
13961396
if (name == 'System`RowBox' and len(self._leaves) == 1 and # nopep8
13971397
self._leaves[0].get_head_name() == 'System`List'):

0 commit comments

Comments
 (0)