Skip to content

Commit 6dbbde7

Browse files
committed
Update documentation for module-indent option
1 parent b42a63d commit 6dbbde7

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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

doc/manpage_ocamlformat.mld

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)