diff --git a/src/main.rs b/src/main.rs index 7ceef7f..418be32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,7 +156,13 @@ async fn main() -> Result<()> { _ => "Invalid usage, follow '--help' for more information".to_owned() }; - print!("{}", output); + if output.ends_with("\n\n") { + print!("{}", &output[..output.len() - 1]); + } else if output.ends_with('\n') { + print!("{}", output); + } else { + println!("{}", output); + } ().into_ok() }