uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

Properly strip/dedent parsed comments

Open badboy opened this issue 7 months ago • 0 comments

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.

badboy avatar Dec 04 '23 09:12 badboy