File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,19 @@ profile. This started with version 0.26.0.
66
77## unreleased
88
9+ ### Added
10+
11+ - Added option ` module-indent ` option (#2711 , @HPRIOR ) to control the indentation
12+ of items within modules. This affects modules and signatures. For example,
13+ module-indent=4:
14+ ``` ocaml
15+ module type M = sig
16+ type t
17+
18+ val f : (string * int) list -> int
19+ end
20+ ```
21+
922### Deprecated
1023
1124- Starting in this release, ocamlformat can use cmdliner >= 2.0.0. When that is
Original file line number Diff line number Diff line change @@ -295,6 +295,10 @@ OPTIONS (CODE FORMATTING STYLE)
295295 the offset of the previous line. The default value is 68. Cannot
296296 be set in attributes.
297297
298+ --module-indent=COLS
299+ Indentation of items within modules (COLS columns). The default
300+ value is 2.
301+
298302 --module-item-spacing={compact|sparse|preserve}
299303 Spacing between items of structures and signatures. compact will
300304 not leave open lines between one-liners of similar sorts. sparse
You can’t perform that action at this time.
0 commit comments