fmt icon indicating copy to clipboard operation
fmt copied to clipboard

Weird format for structs with long field names / options

Open quangIO opened this issue 3 years ago • 1 comments

Original

(struct S
            ([aaaaa #:mutable] [bbbbbbbbbbb #:mutable]
                         [ccccc #:mutable]
                         [ddddd #:mutable]
                         [eeeee #:mutable])
  #:transparent)

After

(struct S
        ([aaaaa #:mutable] [bbbbbbbbbbb #:mutable]
                           [ccccc #:mutable]
                           [ddddd #:mutable]
                           [eeeee #:mutable])
  #:transparent)

Expected?

Shouldn't fmt change it to something like:

(struct S
        ([aaaaa #:mutable] 
         [bbbbbbbbbbb #:mutable]
         [ccccc #:mutable]
         [ddddd #:mutable]
         [eeeee #:mutable])
  #:transparent)

quangIO avatar Dec 16 '21 04:12 quangIO

Thanks! I will fix this tomorrow.

sorawee avatar Dec 16 '21 04:12 sorawee