Skip to content
Snippets Groups Projects
Commit 3829f334 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Translate before tidying up the LaTeX code.

parent 3272947c
No related branches found
No related tags found
No related merge requests found
......@@ -87,10 +87,8 @@ function stack_maxima_latex_tidy($latex) {
*/
function stack_maxima_translate($rawfeedback) {
$rawfeedback = stack_maxima_latex_tidy($rawfeedback);
if (strpos($rawfeedback, 'stack_trans') === false) {
return trim($rawfeedback);
return trim(stack_maxima_latex_tidy($rawfeedback));
} else {
$rawfeedback = str_replace('[[', '', $rawfeedback);
$rawfeedback = str_replace(']]', '', $rawfeedback);
......@@ -120,7 +118,7 @@ function stack_maxima_translate($rawfeedback) {
}
}
return implode(' ', $translated);
return stack_maxima_latex_tidy(implode(' ', $translated));
}
}
......
......@@ -60,12 +60,12 @@ class stack_ast_container extends stack_ast_container_silent implements cas_late
private $testclean;
/**
* AST value coming back from CAS
* AST value coming back from CAS.
*/
private $evaluated;
/**
* LaTeX value coming back from CAS
* LaTeX value coming back from CAS.
*/
private $latex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment