fix for multiplication sign before open group symbol
This commit is contained in:
parent
a2fc94f9b6
commit
9f067a65b8
@ -59,7 +59,7 @@ public class Preprocessor {
|
|||||||
mathTypeBefore != MathEntityType.unary_operation &&
|
mathTypeBefore != MathEntityType.unary_operation &&
|
||||||
!MathEntityType.openGroupSymbols.contains(chBefore)) {
|
!MathEntityType.openGroupSymbols.contains(chBefore)) {
|
||||||
|
|
||||||
if (mathType == MathEntityType.constant) {
|
if (mathType == MathEntityType.constant || MathEntityType.openGroupSymbols.contains(ch)) {
|
||||||
sb.append("*");
|
sb.append("*");
|
||||||
} else if (mathType == MathEntityType.digit && mathTypeBefore != MathEntityType.digit && mathTypeBefore != MathEntityType.dot) {
|
} else if (mathType == MathEntityType.digit && mathTypeBefore != MathEntityType.digit && mathTypeBefore != MathEntityType.dot) {
|
||||||
sb.append("*");
|
sb.append("*");
|
||||||
|
Loading…
Reference in New Issue
Block a user