Skip to content

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

@jackfirth

Description

@jackfirth

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions