Skip to content

Commit 77d3795

Browse files
committed
Fix annotation message formatting
1 parent 44320c5 commit 77d3795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/codingame/codemachine/compiler/java/CodinGameJavaCompiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static void main(String... args) throws IOException {
9494
type,
9595
diagnostic.getSource().getName(),
9696
diagnostic.getLineNumber()+":"+diagnostic.getColumnNumber(),
97-
diagnostic.getMessage(null).replaceAll("\"","\\\"")
97+
diagnostic.getMessage(null).replaceAll("\"","\\\"").replaceAll("\n","\\\\n")
9898
));
9999
}
100100
}

0 commit comments

Comments
 (0)