Skip to content

Commit 0e9546c

Browse files
committed
fix do_format
1 parent 815d501 commit 0e9546c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mathics/core/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def do_format(self, evaluation, form):
348348
leaves = self.get_leaves()
349349
include_form = False
350350
if head in formats and len(leaves) == 1:
351-
expr = leaves
351+
expr = leaves[0]
352352
if not (form == 'System`OutputForm' and head == 'System`StandardForm'):
353353
form = head
354354

0 commit comments

Comments
 (0)