Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrkam2 opened this issue Mar 15, 2024 · 1 comment
Open

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

mrkam2 opened this issue Mar 15, 2024 · 1 comment

Comments

@mrkam2
Copy link

mrkam2 commented Mar 15, 2024

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
Copy link
Collaborator

lread commented Mar 16, 2024

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

@lread lread added this to rewrite-clj Jul 3, 2024
@lread lread moved this to In Progress in rewrite-clj Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants