Skip to content

Commit

Permalink
Add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
InAnYan committed Nov 14, 2024
1 parent dec2ce2 commit 7ee82a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/output_format/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl TableOutputFormat for Table
// println!( "icol : {icol} | irow : {irow} | width : {width} | cell_width : {cell_width} | slice.len() : {}", slice.len() );

let lspaces = ( width - cell_width ) / 2;
let rspaces = ( width - cell_width + 1 ) / 2 + cell_width - slice.len();
let rspaces = ( width - cell_width + 1 ) / 2 + cell_width - slice.chars().count();

// println!( "icol : {icol} | irow : {irow} | width : {width} | cell_width : {cell_width} | lspaces : {lspaces} | rspaces : {rspaces}" );

Expand Down

0 comments on commit 7ee82a0

Please sign in to comment.