Skip to content

Commit

Permalink
Fix wrong simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Jan 25, 2024
1 parent 2f69a2d commit 5ee97c2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/autofonce_lib/promote.ml
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,11 @@ let print_actions ~not_exit ~keep_old b actions =
if nargs > 1 then begin
match stdout with
| Content content ->
if content = "" then
match check.check_stderr with
| Ignore -> ()
| _ ->
Printf.bprintf b ", []"
let s = Parser.m4_escape content in
if Buffer.length b + String.length s > 80 then
Printf.bprintf b ",\n%s" s
else
let s = Parser.m4_escape content in
if Buffer.length b + String.length s > 80 then
Printf.bprintf b ",\n%s" s
else
Printf.bprintf b ", %s" s
Printf.bprintf b ", %s" s
| Save_to_file file ->
assert (file = "stdout" || file = "stderr");
Printf.bprintf b ", [%s]" file
Expand Down

0 comments on commit 5ee97c2

Please sign in to comment.