From a90b3d609f9a93f2ccf1b937a1e7ab55bdcdea7f Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 12 Jan 2021 00:01:01 +0000 Subject: [PATCH] fix: drop empty line on empty output --- --- a/cmds/jrsonnet/src/main.rs +++ b/cmds/jrsonnet/src/main.rs @@ -136,7 +136,10 @@ let mut file = File::create(path)?; writeln!(file, "{}", state.manifest(val)?)?; } else { - println!("{}", state.manifest(val)?); + let output = state.manifest(val)?; + if !output.is_empty() { + println!("{}", output); + } } Ok(()) -- gitstuff