Commit 8e137721 authored by jimmyli97's avatar jimmyli97
Browse files

Extend 3e3b7e to msup,msubsup

parent 72191551
......@@ -145,7 +145,9 @@ public class OperatorNormalizer extends AbstractModule implements DOMModule {
final Element actual = children.get(i); // actual element
if (isOperator(actual)) {
//Keep special case where asterisk is by itself in a subscript
if (isSpareOperator(actual, spareOperators) && !(actual.getParentElement().getName().equals("msub"))) {
String parent = actual.getParentElement().getName();
if (isSpareOperator(actual, spareOperators) && !(parent.equals("msub"))
&& !(parent.equals("msubsup") && !(parent.equals("msup")))) {
actual.detach();
i--; // move iterator back after detaching so it points to next element
LOGGER.log(Level.FINE, "Operator {0} removed", actual);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment