Skip to content

Commit e8b446e

Browse files
authored
Ensure one space on the right of all table cells. (#164)
Otherwise copy&pasting on terminals is annoying.
1 parent 20d2fd4 commit e8b446e

File tree

1 file changed

+1
-1
lines changed
  • traversal/src/main/scala/overflowdb/traversal/help

1 file changed

+1
-1
lines changed

traversal/src/main/scala/overflowdb/traversal/help/Table.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ case class Table(columnNames: Iterable[String], rows: Iterable[Iterable[String]]
1212
val charset = StandardCharsets.UTF_8
1313
val baos = use(new ByteArrayOutputStream)
1414
val ps = use(new PrintStream(baos, true, charset.name))
15-
val rowsAsArray = rows.map(_.toArray.asInstanceOf[Array[Object]]).toArray
15+
val rowsAsArray = rows.map(_.map(_ + " ").toArray.asInstanceOf[Array[Object]]).toArray
1616
new TextTable(columnNames.toArray, rowsAsArray).printTable(ps, 0)
1717
new String(baos.toByteArray, charset)
1818
}.get

0 commit comments

Comments
 (0)