mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Suppress empty lines for compact output
This commit is contained in:
parent
a9f2a4c132
commit
7f8cbb01e5
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue