-
Notifications
You must be signed in to change notification settings - Fork 124
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
Issue with line break and auto formatting from the IDE #238
Comments
line break added because new line found :) i think this issue resolve by IDE configuration, but not plugin changes |
I understand what you are saying, I think this is a shame because then, we cannot reuse raw android files with moko resources... |
@y9san9 here should be added new |
y9san9
added a commit
that referenced
this issue
Mar 21, 2022
y9san9
added a commit
that referenced
this issue
Mar 21, 2022
# Conflicts: # resources-generator/src/main/kotlin/dev/icerock/gradle/MultiplatformResourcesPlugin.kt # resources-generator/src/main/kotlin/dev/icerock/gradle/generator/PluralsGenerator.kt # resources-generator/src/main/kotlin/dev/icerock/gradle/generator/StringsGenerator.kt # resources-generator/src/main/kotlin/dev/icerock/gradle/generator/jvm/JvmPluralsGenerator.kt # resources-generator/src/main/kotlin/dev/icerock/gradle/generator/jvm/JvmStringsGenerator.kt
y9san9
added a commit
that referenced
this issue
Mar 23, 2022
Alex009
added a commit
that referenced
this issue
Mar 23, 2022
#238 changed default behavior - ignore new lines in xml
will be released in 0.19.0 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I noticed an issue with the strings.xml file when the line goes past the 100 characters limit.
What happens, is that I type my string like this:
And then it gets auto formatted by the IDE like this:
This is working fine on standard android project, but here is the generated multiplarform_strings.xml:
It adds hard line break and my text is now split across multiple lines... I think, the transformation to multiplatform_strings.xml should not add any \n. In strings.xml if we want to add an explicit line break, we need to use \n. The generation should keep the string as it was typed.
The text was updated successfully, but these errors were encountered: