Don't show last bullet if there's no label

This commit is contained in:
Danny Tuppeny
2018-05-09 08:07:28 +01:00
committed by Danny Tuppeny
parent e9281c4ac0
commit 9eb3bf5ed5

View File

@@ -126,7 +126,7 @@ abstract class Emulator {
return table.map((List<String> row) {
return indices
.map((int i) => row[i].padRight(widths[i]))
.join(' • ') + ' • ${row.last}';
.join(' • ') + (row.last != '' ? ' • ${row.last}' : '');
}).toList();
}