fix bug where error in unification would cause mathjax not rendering

This commit is contained in:
ucrhh 2021-02-11 22:40:37 +01:00
parent 5265439b62
commit 1d8a01fc02

View File

@ -193,11 +193,11 @@ public class LatexCreatorConstraints implements StepVisitor {
latex.append(UNIFY + PAREN_LEFT + LATEX_CURLY_LEFT);
}
for (int i = unificationConstraints.size() - 1; i >= 0; i--) {
latex.append(AMPERSAND);
if (markError && i == 0) {
latex.append(COLOR_RED);
latex.append(CURLY_LEFT);
}
latex.append(AMPERSAND);
latex.append(new LatexCreatorType(unificationConstraints.get(i).getFirstType()).getLatex());
if (markError && i == 0) {
latex.append(CURLY_RIGHT);