btrbk: fix alignment if no header is printed

pull/343/head
Axel Burri 2020-10-30 19:09:50 +01:00
parent 528a152d6d
commit a99292aba8
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -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) {