btrbk: print_formatted: omit title for format: raw,tlog,syslog

pull/260/head
Axel Burri 2018-10-31 14:06:14 +01:00
parent 74873081c3
commit ebaaee2139
1 changed files with 5 additions and 1 deletions

6
btrbk
View File

@ -4236,7 +4236,6 @@ sub print_formatted(@)
$format = $default_format; $format = $default_format;
} }
print $fh "$title\n" if($title);
if($format eq "raw") if($format eq "raw")
{ {
# output: key0="value0" key1="value1" ... # output: key0="value0" key1="value1" ...
@ -4282,6 +4281,11 @@ sub print_formatted(@)
} }
} }
# print title
if($title) {
print $fh "$title\n";
}
# print keys (headings) # print keys (headings)
unless($args{no_header}) { unless($args{no_header}) {
my $fill = 0; my $fill = 0;