# Ocamlformat 0.27.0 reformatting code

**URL:** <https://discuss.ocaml.org/t/ocamlformat-0-27-0-reformatting-code/15761>\
**Category:** Ecosystem\
**Tags:** ocamlformat\
**Created:** [December 6, 2024, 1:19pm UTC](https://discuss.ocaml.org/t/ocamlformat-0-27-0-reformatting-code/15761 "2024-12-06T13:19:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbitz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/orbitz/32/110_2.png) [@orbitz](https://discuss.ocaml.org/u/orbitz)\
**Post date:** [December 6, 2024, 1:19pm UTC](https://discuss.ocaml.org/t/ocamlformat-0-27-0-reformatting-code/15761/1 "2024-12-06T13:19:37Z")

</div>

I just upgraded from ocamlformat 0.26.2 to 0.27.0 and it is turning:

```auto
      // (* path *) Ret.text
      // (* workflow_idx *) Ret.(option smallint)
      // (* workspace *) Ret.text

```

into

```auto
      //
      (* path *)
      Ret.text
      //
      (* workflow_idx *)
      Ret.(option smallint)
      //
      (* workspace *)
      Ret.text

```

Any idea how I can tell it to not?

---

<div class="post-metadata">

**Author:** ![Juloo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/juloo/32/881_2.png) [@Juloo](https://discuss.ocaml.org/u/Juloo)\
**Post date:** [December 6, 2024, 3:13pm UTC](https://discuss.ocaml.org/t/ocamlformat-0-27-0-reformatting-code/15761/2 "2024-12-06T15:13:02Z")

</div>

OCamlformat generally prefers comments to be at the end of lines. This works:

```auto
  // Ret.text (* path *)
  // Ret.(option smallint) (* workflow_idx *)
  // Ret.text (* workspace *)

```
