Skip to content

Properly strip/dedent parsed comments #1884

@badboy

Description

@badboy

Initially we took the raw comments in proc-macro code, which means the leading spaces (and trailing) are included.
That's not so much a problem for printing them, because we do the dedent-indent dance.
But since #1878 we now trim all input, which removes too much.

Let's add a proper test case and fix this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions