diff --git a/mathics_django/web/format.py b/mathics_django/web/format.py index 278074a21..ded0ec557 100644 --- a/mathics_django/web/format.py +++ b/mathics_django/web/format.py @@ -77,7 +77,7 @@ def format_output(evaluation, expr, html_tag_format=None): # This part is similar to mathics.core.evaluation.format_output(). if html_tag_format == "text": boxed = format_element(expr, evaluation, SymbolOutputForm) - result = boxed.boxes_to_text() + result = f'"{boxed.to_text()}"' return safe_html_string(result) elif html_tag_format == "xml": diff --git a/pyproject.toml b/pyproject.toml index 3e4752c39..a06e6415b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ name = "Mathics3-Django" description = "A Django-based frontend for Mathics3" dependencies = [ "Django >= 3.1", - "Mathics3 >= 10.0", + "Mathics3 >= 10.0.1", "Mathics3_Scanner >= 10.0", "pygments", # For colorized Python tracebacks "requests",