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.
1 parent b472e26 commit e40de5cCopy full SHA for e40de5c
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("\n").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