ensure cl file ends with LF

This commit is contained in:
2025-09-13 15:26:33 +02:00
parent c00c6dfcd7
commit 4ef329ca4f
+4
View File
@@ -98,6 +98,10 @@ pub(crate) fn cl_log(ctx: AppContext) -> anyhow::Result<()> {
text = prefill_text;
}
if !text.ends_with('\n') {
text.push('\n');
}
store.create_entry(entry_name, text)?;
println!("{}", "Done.".green());