mirror of https://github.com/digint/btrbk
btrbk: fix alignment if no header is printed
parent
528a152d6d
commit
a99292aba8
2
btrbk
2
btrbk
|
@ -4819,7 +4819,7 @@ sub print_formatted(@)
|
||||||
my %maxlen;
|
my %maxlen;
|
||||||
my @sane_data;
|
my @sane_data;
|
||||||
foreach my $key (@keys) {
|
foreach my $key (@keys) {
|
||||||
$maxlen{$key} = length($key); # initialize with size of key
|
$maxlen{$key} = $args{no_header} ? 0 : length($key); # initialize with size of key
|
||||||
}
|
}
|
||||||
foreach my $row (@$data) {
|
foreach my $row (@$data) {
|
||||||
foreach my $key (@keys) {
|
foreach my $key (@keys) {
|
||||||
|
|
Loading…
Reference in New Issue