mirror of https://github.com/digint/btrbk
btrbk: print_formatted: no blank lines for format: raw,tlog,syslog
parent
ebaaee2139
commit
de851955b6
17
btrbk
17
btrbk
|
@ -4319,6 +4319,11 @@ sub print_formatted(@)
|
||||||
}
|
}
|
||||||
print $fh "\n";
|
print $fh "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# print additional newline for paragraphs
|
||||||
|
if($args{paragraph}) {
|
||||||
|
print $fh "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4943,14 +4948,12 @@ MAIN:
|
||||||
# print scheduling results
|
# print scheduling results
|
||||||
if($print_schedule) {
|
if($print_schedule) {
|
||||||
my @data = map { { %$_, vinfo_prefixed_keys("", $_->{value}) }; } @$schedule_results;
|
my @data = map { { %$_, vinfo_prefixed_keys("", $_->{value}) }; } @$schedule_results;
|
||||||
print_formatted("schedule", \@data, title => "ARCHIVE SCHEDULE");
|
print_formatted("schedule", \@data, title => "ARCHIVE SCHEDULE", paragraph => 1);
|
||||||
print "\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($print_schedule && $del_schedule_results) {
|
if($print_schedule && $del_schedule_results) {
|
||||||
my @data = map { { %$_, vinfo_prefixed_keys("", $_->{value}) }; } @$del_schedule_results;
|
my @data = map { { %$_, vinfo_prefixed_keys("", $_->{value}) }; } @$del_schedule_results;
|
||||||
print_formatted("schedule", \@data, title => "DELETE SCHEDULE");
|
print_formatted("schedule", \@data, title => "DELETE SCHEDULE", paragraph => 1);
|
||||||
print "\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# print summary
|
# print summary
|
||||||
|
@ -6088,12 +6091,10 @@ MAIN:
|
||||||
my @data_backup = grep { $_->{topic} eq "backup" } @data;
|
my @data_backup = grep { $_->{topic} eq "backup" } @data;
|
||||||
|
|
||||||
if(scalar(@data_snapshot)) {
|
if(scalar(@data_snapshot)) {
|
||||||
print_formatted("schedule", \@data_snapshot, title => "SNAPSHOT SCHEDULE");
|
print_formatted("schedule", \@data_snapshot, title => "SNAPSHOT SCHEDULE", paragraph => 1);
|
||||||
print "\n";
|
|
||||||
}
|
}
|
||||||
if(scalar(@data_backup)) {
|
if(scalar(@data_backup)) {
|
||||||
print_formatted("schedule", \@data_backup, title => "BACKUP SCHEDULE");
|
print_formatted("schedule", \@data_backup, title => "BACKUP SCHEDULE", paragraph => 1);
|
||||||
print "\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue