From 7f8cbb01e5b133ededf381fde12ed914069bd226 Mon Sep 17 00:00:00 2001 From: Korrat Date: Thu, 3 Oct 2019 11:55:07 +0200 Subject: [PATCH] Suppress empty lines for compact output --- src/formatter.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/formatter.rs b/src/formatter.rs index 488f8ed..40ec5bf 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -57,7 +57,11 @@ where let mut command = String::new(); while let Some(token) = tokenizer.next_token() { match token { - LineType::Empty => println!(), + LineType::Empty => { + if !config.display.compact { + println!() + } + } LineType::Title(title) => { debug!("Ignoring title");