From d7baa67acb8d63e470b911f595d0ae0455c02ba1 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 13 Oct 2018 20:17:19 +0200 Subject: [PATCH] snapshots: Don't print empty line for --compact Closes #2038 --- cmd/restic/cmd_snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_snapshots.go b/cmd/restic/cmd_snapshots.go index e456514c3..4655bb928 100644 --- a/cmd/restic/cmd_snapshots.go +++ b/cmd/restic/cmd_snapshots.go @@ -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 }