We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Test void textBlockTrailingEscape() { assertEquals( """ hello\ """, """ hello"""); rewriteRun( spec -> spec.recipe(new UseTextBlocks()), java( """ package com.helloworld; public class Main { String foo = "hello\\n" + "world"; }""", """ package com.helloworld; public class Main { String foo = \""" hello world\"""; }""", src -> src.markers(javaVersion(17)))); }
The escape after world is not needed are merely adds noise. Instead, the text block could be:
world
""" hello world"""
Likely not in the near-term due to other commitments.
The text was updated successfully, but these errors were encountered:
Thanks for the clear example!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of OpenRewrite are you using?
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
The escape after
world
is not needed are merely adds noise. Instead, the text block could be:Are you interested in contributing a fix to OpenRewrite?
Likely not in the near-term due to other commitments.
The text was updated successfully, but these errors were encountered: