clj-commons / rewrite-clj

Rewrite Clojure code and edn
https://cljdoc.org/d/rewrite-clj
MIT License
590 stars 55 forks source link

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

Open mrkam2 opened 6 months ago

mrkam2 commented 6 months ago

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}]
lread commented 6 months ago

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