Skip to content

Commit ab44ee3

Browse files
committed
Move to padColumn
1 parent 3234f3d commit ab44ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/table/Ascii.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public function row( array $row ) {
138138

139139
foreach ( $row as $col => $value ) {
140140
$value = $value ?: '';
141-
$value = str_replace( "\t", ' ', $value );
142141
$col_width = $this->_widths[ $col ];
143142
$encoding = function_exists( 'mb_detect_encoding' ) ? mb_detect_encoding( $value, null, true /*strict*/ ) : false;
144143
$original_val_width = Colors::width( $value, self::isPreColorized( $col ), $encoding );
@@ -199,6 +198,7 @@ public function row( array $row ) {
199198
}
200199

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

0 commit comments

Comments
 (0)