-
Notifications
You must be signed in to change notification settings - Fork 46
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
@Headers annotation produces unexpected newline in generated code by ksp plugin #752
Comments
Thank you for the report! |
There is a pretty big chance this is a KotlinPoet side effect. I've seen it wrap like this with longer generated lines in my project :) |
This has actually been fixed upstream https://square.github.io/kotlinpoet/changelog/#version-200
|
Ktorfit version
2.2.0
What happened and how can we reproduce this issue?
For this function in my network interface:
It is converted to code below by ksp plugin:
The
User-Agent
field contains an unexpected newline, which results in a compilation error.What did you expect to happen?
No newline will be generated.
Is there anything else we need to know about?
No response
The text was updated successfully, but these errors were encountered: