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

Leading comments don't respect alignment from #:indent #68

Open
jackfirth opened this issue Aug 29, 2024 · 0 comments
Open

Leading comments don't respect alignment from #:indent #68

jackfirth opened this issue Aug 29, 2024 · 0 comments

Comments

@jackfirth
Copy link
Contributor

Consider this expression:

; comment
(define (foo) 1)

If I call program-format on that expression with an #:indent of 2, I get this output:

; comment
(define (foo)
  1)

But that's wrong, because it ignored the leading indentation of 2 that I specified. The output should be this:

; comment
  (define (foo)
    1)

Compare that with what happens if I call (program-format "(define (foo) 1)" #:indent 2). The output is:

(define (foo)
    1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant