Skip to content

Commit

Permalink
Replace tabs in tables with 4 spaces (#181)
Browse files Browse the repository at this point in the history
* Replace tabs in tables with 4 spaces

* Move to `padColumn`

* Cast to string
  • Loading branch information
swissspidy authored Mar 3, 2025
1 parent 77616d6 commit 8063b4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cli/table/Ascii.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public function row( array $row ) {
}

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

Expand Down

0 comments on commit 8063b4d

Please sign in to comment.