We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b472e26 + c7fbab6 commit ddac928Copy full SHA for ddac928
compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala
@@ -254,7 +254,7 @@ trait MessageRendering {
254
sb.append(EOL).append(newBox())
255
sb.append(EOL).append(offsetBox).append(" Explanation (enabled by `-explain`)")
256
sb.append(EOL).append(newBox(soft = true))
257
- dia.msg.explanation.split(EOL).foreach { line =>
+ dia.msg.explanation.split(raw"\R").foreach { line =>
258
sb.append(EOL).append(offsetBox).append(if line.isEmpty then "" else " ").append(line)
259
}
260
sb.append(EOL).append(endBox)
0 commit comments