fmt icon indicating copy to clipboard operation
fmt copied to clipboard

Indentation of long structs disagrees with DrRacket

Open jackfirth opened this issue 1 year ago • 0 comments

This code:

(struct some-struct-type
  (some-long-field another-long-field yet-another-long-field one-last-long-field)
  #:transparent)

is currently reformatted to this:

(struct some-struct-type
        (some-long-field another-long-field yet-another-long-field one-last-long-field)
  #:transparent)

However, this disagrees with DrRacket's indenter. DrRacket prefers the first form and I tend to agree with that choice. In general, I think fmt and DrRacket should avoid fighting each other in their default settings.

jackfirth avatar Aug 10 '24 08:08 jackfirth