Skip to content

Bug: inconsistent indentation when using max-indent=2 #925

@Khady

Description

@Khady

Ocamlformat 0.10 configuration:

max-indent=2
break-separators=after-and-docked

The code is indented this way. You can see that the 2.; starts on a different column than all the other elements. I think 2. should be aligned like the other ones.

let array =
  [| 0.5;
    2.;
     3.5;
     5.;
     6.5;
     8.;
     9.5;
     11.;
     12.5;
     14.;
     15.5;
     17.;
     18.5;
     20.;
     21.5;
     23.;
     24.5;
     26.;
     27.5;
     29.;
     30.5;
     32.;
     33.5;
     35.;
     36.5;
     38.;
     39.5;
     41.;
     42.5;
     44.
  |]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions