How to disable ocamlformat from formatting record into one line?

I have a record that I’ve formatted like so

Ok { 
  x = s.x +. (s.v *. p.dt);
  v = s.v +. (-.p.k *. s.x *. p.dt)
}

When I run ocamlformat on this I get this

Ok { x = s.x +. (s.v *. p.dt); v = s.v +. (-.p.k *. s.x *. p.dt) }

Which is a bit less readable. Any way to disable it for specific blocks/regions of code? Like zig fmt allows adding // zig fmt: off// zig fmt: on to exclude sections from being formatted.

Depending on the context, try [@ocamlformat "disable"] (on expressions) or [@@ocamlformat "disable"] (for module-level items):

let foo = Ok { 
  x = s.x +. (s.v *. p.dt);
  v = s.v +. (-.p.k *. s.x *. p.dt)
} [@@ocamlformat "disable"]

See ocamlformat FAQ for more info.

ah should have found that. thank you so much though!