Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
3829f334
Commit
3829f334
authored
6 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Translate before tidying up the LaTeX code.
parent
3272947c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
locallib.php
+2
-4
2 additions, 4 deletions
locallib.php
stack/cas/ast.container.class.php
+2
-2
2 additions, 2 deletions
stack/cas/ast.container.class.php
with
4 additions
and
6 deletions
locallib.php
+
2
−
4
View file @
3829f334
...
...
@@ -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
)
)
;
}
}
...
...
This diff is collapsed.
Click to expand it.
stack/cas/ast.container.class.php
+
2
−
2
View file @
3829f334
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment