Skip to content

Commit 3c41c54

Browse files
fix: include newline at the end of list output (#21)
1 parent 6d1e17f commit 3c41c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub fn execute(path_db: &Path, args: ListArgs) -> Result<()> {
110110
.join("\n");
111111

112112
let mut stdout = stdout().lock();
113-
ignore_broken_pipe(write!(&mut stdout, "{output}",))
113+
ignore_broken_pipe(writeln!(&mut stdout, "{output}",))
114114
.into_diagnostic()
115115
.context("failed to write to STDOUT")?;
116116
ignore_broken_pipe(stdout.flush())

0 commit comments

Comments
 (0)