snapshots: Don't print empty line for --compact

Closes #2038
This commit is contained in:
Alexander Neumann 2018-10-13 20:17:19 +02:00
parent 167397c18c
commit d7baa67acb
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func PrintSnapshots(stdout io.Writer, list restic.Snapshots, reasons []restic.Ke
data.Reasons = keepReasons[*id].Matches
}
if len(sn.Paths) > 1 {
if len(sn.Paths) > 1 && !compact {
multiline = true
}