Use platform-independent line separator

See gh-23571
This commit is contained in:
mnhock
2020-10-02 09:29:50 +02:00
committed by Stephane Nicoll
parent 797c12e75d
commit fc89051242

View File

@@ -28,7 +28,7 @@ public class TestFormatter extends Formatter {
@Override
public String format(LogRecord record) {
return String.format("foo: %s -- %s\n", record.getLoggerName(), record.getMessage());
return String.format("foo: %s -- %s%n", record.getLoggerName(), record.getMessage());
}
}