Skip to content

Commit 0daf544

Browse files
committed
Replace tabs in tables with 4 spaces
1 parent 62f1f00 commit 0daf544

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
@@ -138,6 +138,7 @@ public function row( array $row ) {
138138

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

0 commit comments

Comments
 (0)