Open
Description
This is a question about the formatting option wrap-comments=true
.
I think I am misunderstanding its intent. I thought this would be an option to force inserting newline characters in regular non-docstring comments, so they fit into the margin. However, experimenting with this, this doesn't seem to be the case. I am not sure whether I should file a bug report, or I misunderstood how the option can be used.
Here is my config:
version = 0.27.0
profile = janestreet
wrap-comments = true
Here was an attempt at writing a long comment, with the hope that it would be automatically wrapped on fmt
:
(* Hello, this file has [wrap-comments = true] enabled via its [.ocamlformat] config, but I am not sure what changes does it make. This comment for example is not wrapped when this file is formatted. Sounds like the setting is ignored. Or how long should a comment for it to be wrapped? I am keeping this comment here for the time being to monitor whether there'd be changes on this front. *)