Add trailing comma to arrays display

This commit is contained in:
devnull850 2022-05-26 08:08:54 -04:00
parent 0241b2b97e
commit 7e07eb397d

View File

@ -99,7 +99,7 @@ public class ArrayValuesFieldFactory extends FieldFactory {
FieldElement[] aStrings = new FieldElement[valuesThisLine];
for (int i = 0; i < valuesThisLine; i++) {
Data child = parent.getComponent(index++);
String value = getDisplayValue(child, i != valuesThisLine - 1);
String value = getDisplayValue(child, remaining > valuesThisLine || i != valuesThisLine - 1);
AttributedString as = new AttributedString(value, color, getMetrics());
aStrings[i] = new TextFieldElement(as, i, 0);
}