Skip to content

Commit bc28bac

Browse files
row() can return PHP_EOL delimited strings
Let's cleanly handle it
1 parent 023ef38 commit bc28bac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cli/Table.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ public function getDisplayLines() {
149149
}
150150

151151
foreach ($this->_rows as $row) {
152-
$out[] = $this->_renderer->row($row);
152+
$row = $this->_renderer->row($row);
153+
$row = explode( PHP_EOL, $row );
154+
$out = array_merge( $out, $row );
153155
}
154156

155157
if (isset($border)) {

0 commit comments

Comments
 (0)