Open treenwang opened 1 month ago
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
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