Permalink
Browse files

* main_spatch.ml: fix for sed mode

  • Loading branch information...
1 parent 054efe3 commit 0c28c798dbb825f7fd8284088a5148c18a6d21b8 @aryx aryx committed Dec 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 main_spatch.ml
View
@@ -153,7 +153,8 @@ let main_action xs =
let tmpfile = Common.new_temp_file "spatch" ".spatch" in
Common.with_open_outfile tmpfile (fun (pr, _chan) ->
pr (spf "- %s\n" before);
- pr (spf "+ %s\n" after);
+ if after <> ""
+ then pr (spf "+ %s\n" after);
);
tmpfile
end

0 comments on commit 0c28c79

Please sign in to comment.