Commit 768fca8b authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Trim all space/dots from end

Depending on whether can read the AVD (or it even has all fields populated) we might get extra "empty" columns, so this trims all blank cells from the end.
parent 6cd22d01
......@@ -123,11 +123,14 @@ abstract class Emulator {
}
// Join columns into lines of text
final RegExp whiteSpaceAndDots = new RegExp(r'[•\s]+$');
return table.map((List<String> row) {
return indices
.map((int i) => row[i].padRight(widths[i]))
.join(' • ') + (row.last != '' ? ' • ${row.last}' : '');
}).toList();
.join(' • ') + ' • ${row.last}';
})
.map((String line) => line.replaceAll(whiteSpaceAndDots, ''))
.toList();
}
static void printEmulators(List<Emulator> emulators) {
......
Markdown is supported
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