debugging fix
This commit is contained in:
parent
1248bae5e4
commit
d2698f115c
|
@ -425,9 +425,15 @@ public class ExpressionNode {
|
|||
} else if (constant instanceof Quantity) {
|
||||
Quantity q = (Quantity) constant;
|
||||
b.append(Utilities.escapeJson(q.getValue().toPlainString()));
|
||||
if (q.hasUnit() || q.hasCode()) {
|
||||
b.append(" '");
|
||||
if (q.hasUnit()) {
|
||||
b.append(Utilities.escapeJson(q.getUnit()));
|
||||
} else {
|
||||
b.append(Utilities.escapeJson(q.getCode()));
|
||||
}
|
||||
b.append("'");
|
||||
}
|
||||
} else if (constant.primitiveValue() != null) {
|
||||
b.append(Utilities.escapeJson(constant.primitiveValue()));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue