sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

Weird format for structs with long field names / options #29

Open quangIO opened 2 years ago

quangIO commented 2 years ago

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)
sorawee commented 2 years ago

Thanks! I will fix this tomorrow.