package com.formulasearchengine.mathmltools.utils.mml;


import org.w3c.dom.Element;

public class CSymbol implements Comparable<CSymbol>{
    private boolean strict;
    private Element n;

    public CSymbol(Element n, boolean strict) {
        this.strict = strict;
        this.n = n;
    }

    public String getCName() {
        return n.getTextContent();
    }

    public String getCd() {
        return n.getAttribute("cd");
    }

    public void setCd(String cd) {
        n.setAttribute("cd", cd);
    }

    @Override
    public String toString() {
        return getCd() + ":" + getCName();
    }

    @Override
    public int compareTo(CSymbol o) {
        final int cdComp = getCd().compareTo(o.getCd());
        return cdComp != 0  ? cdComp :  getCName().compareTo(o.getCName());
    }
}

@@ -130,16 +130,17 @@
 CSymbol%3E
+ 
 %7B%0A    pr
@@ -742,17 +742,16 @@
 mp != 0 
- 
 ? cdComp
@@ -752,17 +752,16 @@
 cdComp :
- 
  getCNam

Fix ws issues