Closed hirrolot closed 3 months ago
Sorry for the slow reply.
The option to format documentation comments is --parse-docstrings
and there's no way to just wrap docstrings without applying the full formatting on them.
I corrected the doc in https://github.com/ocaml-ppx/ocamlformat/pull/2568
I'll close this issue. Feel free to re-open if you have any questions.
Even with parse-docstrings
set to true
(in my config file), documentation strings are not wrapped. Am I doing something wrong? My config file is:
version = 0.26.2
profile = janestreet
module-item-spacing = sparse
let-binding-indent = 4
max-indent = 4
wrap-comments = true
parse-docstrings = true
I'm seeing the option
wrap-comments
, but when set totrue
, it doesn't wrap documentation comments (only regular comments). Is there any way to wrap documentation comments?From
doc/manpage_ocamlformat.mld
: