Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace tabs in tables with 4 spaces
  • Loading branch information
swissspidy committed Mar 3, 2025
commit 0daf54478607016ea6a3260e8a53d96a882938af
1 change: 1 addition & 0 deletions lib/cli/table/Ascii.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function row( array $row ) {

foreach ( $row as $col => $value ) {
$value = $value ?: '';
$value = str_replace( "\t", ' ', $value );
$col_width = $this->_widths[ $col ];
$encoding = function_exists( 'mb_detect_encoding' ) ? mb_detect_encoding( $value, null, true /*strict*/ ) : false;
$original_val_width = Colors::width( $value, self::isPreColorized( $col ), $encoding );
Expand Down