This commit is contained in:
Sergey Solovyev
2011-11-17 17:50:14 +04:00
parent 4d679ddb80
commit 94282706fe
3 changed files with 12 additions and 2 deletions

View File

@@ -105,6 +105,11 @@ public class TextHighlighter implements TextProcessor<TextHighlighter.Result> {
text1.append(text.charAt(i));
break;
case operator:
text1.append(mathType.getMatch());
if (mathType.getMatch().length() > 1) {
i += mathType.getMatch().length() - 1;
}
break;
case function:
i = processHighlightedText(text1, i, mathType.getMatch(), "i");
break;