Suppress empty lines for compact output

This commit is contained in:
Korrat 2019-10-03 11:55:07 +02:00
commit 7f8cbb01e5

View file

@ -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");