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

Add support for linewrapping long strings #744

Open
adrw opened this issue Aug 9, 2019 · 0 comments

Comments

@adrw
Copy link
Member

commented Aug 9, 2019

When defining a Map<String,String> with Kotlin Poet, some of the string values are very long and there isn't a default or way to wrap them at 80 characters in to multiple strings concatenated with + on different lines as an IDE does.

Current functionality

val myMap = mapOf(
  "key1" to "super long text that doesn't wrap, it keeps going and going and going and going and going and going and going and going..."
)

Desired functionality

val myMap = mapOf(
  "key1" to "super long text that doesn't wrap, it keeps going " +
      "and going and going and going and going and going and" +
      " going and going..."
)

@Egorand Egorand added the enhancement label Aug 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.