Skip to content

Commit 6ed4ce3

Browse files
Changed latex array formatting
1 parent 70fe901 commit 6ed4ce3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

evaluation_function/preview.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def preview_function(response: str, params: Params) -> Result:
3131
if params.get("text_prototype", False) is True:
3232
response_original = response
3333
if params.get("is_latex", False) is True:
34-
latex_array_start = r"\\begin{array}{l}\n"
35-
latex_array_end = r"\n\\end{array}"
36-
latex_array_newline = r"\\\\\n"
34+
latex_array_start = r"\begin{array}{l}\n"
35+
latex_array_end = r"\n\end{array}"
36+
latex_array_newline = r"\\\n"
3737
response = response.replace(latex_array_start, "")
3838
response = response.replace(latex_array_end, "")
3939
response = response.replace(latex_array_newline, " ")

0 commit comments

Comments
 (0)