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
Unexpected indent printed out when printing Java multiline string.
No response
@Test void testMultilineString(){ CtType<?> ctType = Launcher.parseClass("class A{ void a(){var s = \"\"\"\na\n\"\"\";} }"); System.out.println(ctType.toStringWithImports()); Assertions.assertEquals("class A {\n" + " void a() {\n" + " var s = \"\"\"\na\"\"\";\n" + " }\n" + "}\n", ctType.toStringWithImports()); }
class A { void a() { var s = """ a """; } }
11.1.0
Java 17+
MacOS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Unexpected indent printed out when printing Java multiline string.
Source code you are trying to analyze/transform
No response
Source code for your Spoon processing
Actual output
Expected output
Spoon Version
11.1.0
JVM Version
Java 17+
What operating system are you using?
MacOS
The text was updated successfully, but these errors were encountered: