We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6efe2ab + 70fe901 commit e489690Copy full SHA for e489690
evaluation_function/preview.py
@@ -34,10 +34,9 @@ def preview_function(response: str, params: Params) -> Result:
34
latex_array_start = r"\\begin{array}{l}\n"
35
latex_array_end = r"\n\\end{array}"
36
latex_array_newline = r"\\\\\n"
37
- if response.startswith(latex_array_start):
38
- response = response.replace(latex_array_start, "")
39
- response = response.replace(latex_array_end, "")
40
- response = response.replace(latex_array_newline, " ")
+ response = response.replace(latex_array_start, "")
+ response = response.replace(latex_array_end, "")
+ response = response.replace(latex_array_newline, " ")
41
result = Result(preview=Preview(latex=response_original, sympy=response))
42
return result
43
0 commit comments