Skip to content

Commit 8063b4d

Browse files
authored
Replace tabs in tables with 4 spaces (#181)
* Replace tabs in tables with 4 spaces * Move to `padColumn` * Cast to string
1 parent 77616d6 commit 8063b4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cli/table/Ascii.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ public function row( array $row ) {
198198
}
199199

200200
private function padColumn($content, $column) {
201+
$content = str_replace( "\t", ' ', (string) $content );
201202
return $this->_characters['padding'] . Colors::pad( $content, $this->_widths[ $column ], $this->isPreColorized( $column ) ) . $this->_characters['padding'];
202203
}
203204

0 commit comments

Comments
 (0)