diff --git a/src/haz3lcore/pretty/ExpToSegment.re b/src/haz3lcore/pretty/ExpToSegment.re index 2ebd9db88f..34e72f8737 100644 --- a/src/haz3lcore/pretty/ExpToSegment.re +++ b/src/haz3lcore/pretty/ExpToSegment.re @@ -31,8 +31,13 @@ let should_add_space = (s1, s2) => | _ when String.starts_with(s2, ~prefix=":") => false | _ when String.ends_with(s1, ~suffix=" ") => false | _ when String.starts_with(s2, ~prefix=" ") => false - | _ when String.ends_with(s1, ~suffix="⏎") => false - | _ when String.starts_with(s2, ~prefix="⏎") => false + | _ when String.ends_with(s1, ~suffix="\n") => false + | _ when String.starts_with(s2, ~prefix="\n") => false + | _ + when + String.ends_with(s1, ~suffix=")") + && String.starts_with(s2, ~prefix="(") => + false | _ => true };