Unexpected indent printed out when printing Java multiline string.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 392
- Avg merge
- 11h 24m
- Merged PRs (30d)
- 36
Description
### 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
```Java
@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());
}
```
### Actual output
```Java
class A {
void a() {
var s = """
a
""";
}
}
```
### Expected output
```Java
class A {
void a() {
var s = """
a
""";
}
}
```
### Spoon Version
11.1.0
### JVM Version
Java 17+
### What operating system are you using?
MacOS
Contributor guide
Assessment
This issue has not been assessed yet.