Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created January 11, 2011 22:34
Show Gist options
  • Select an option

  • Save cwarden/775293 to your computer and use it in GitHub Desktop.

Select an option

Save cwarden/775293 to your computer and use it in GitHub Desktop.
Fixes Debian bug #477084, appending newlines to new and pasted reminders
diff -ru wyrd-1.4.4/interface_main.ml wyrd-1.4.4-newline-fix/interface_main.ml
--- wyrd-1.4.4/interface_main.ml 2008-02-21 20:25:25.000000000 -0800
+++ wyrd-1.4.4-newline-fix/interface_main.ml 2011-01-11 14:28:36.000000000 -0800
@@ -626,7 +626,7 @@
let remfile_channel =
open_out_gen [Open_append; Open_creat; Open_text] 416 remfile
in
- output_string remfile_channel remline;
+ output_string remfile_channel (remline ^ "\n");
close_out remfile_channel;
(* open the reminders file in an editor *)
let filename_sub = Str.regexp "%file%" in
@@ -1401,7 +1401,7 @@
let remfile_channel =
open_out_gen [Open_append; Open_creat; Open_text] 416 remfile
in
- output_string remfile_channel new_remline;
+ output_string remfile_channel (new_remline ^ "\n");
close_out remfile_channel;
(* open reminders file in editor *)
let filename_sub = Str.regexp "%file%" in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment