rewrite-clj icon indicating copy to clipboard operation
rewrite-clj copied to clipboard

`paredit/wrap-fully-forward-slurp` removes indents

Open mrkam2 opened this issue 1 year ago • 2 comments

Version rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}

Platform Clojure version: 1.11.1

Symptom wrap-fully-forward-slurp kills all the indents of the code it is slurping

Reproduction

(-> (z/of-string "
    [indented
     list
     of
     symbols]")
    z/down
    (pe/wrap-fully-forward-slurp :map)
    z/print-root)

Actual behavior

    [{indented
list
of
symbols}]

Expected behavior

    [{indented
      list
      of
      symbols}]

mrkam2 avatar Mar 15 '24 23:03 mrkam2

Thanks for raising @mrkam2, I'll take a peek soon!

lread avatar Mar 16 '24 00:03 lread