ensure cl file ends with LF

cl-status
Ondřej Hruška 4 days ago
parent c00c6dfcd7
commit 4ef329ca4f
  1. 4
      src/action_log.rs

@ -98,6 +98,10 @@ pub(crate) fn cl_log(ctx: AppContext) -> anyhow::Result<()> {
text = prefill_text; text = prefill_text;
} }
if !text.ends_with('\n') {
text.push('\n');
}
store.create_entry(entry_name, text)?; store.create_entry(entry_name, text)?;
println!("{}", "Done.".green()); println!("{}", "Done.".green());

Loading…
Cancel
Save