Skip to content

Commit

Permalink
Merge pull request #14456 from dotty-staging/mb/windows-explain-eol
Browse files Browse the repository at this point in the history
Fix explain rendering with Windows EOL
  • Loading branch information
nicolasstucki authored Feb 12, 2022
2 parents b472e26 + c7fbab6 commit ddac928
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ trait MessageRendering {
sb.append(EOL).append(newBox())
sb.append(EOL).append(offsetBox).append(" Explanation (enabled by `-explain`)")
sb.append(EOL).append(newBox(soft = true))
dia.msg.explanation.split(EOL).foreach { line =>
dia.msg.explanation.split(raw"\R").foreach { line =>
sb.append(EOL).append(offsetBox).append(if line.isEmpty then "" else " ").append(line)
}
sb.append(EOL).append(endBox)
Expand Down

0 comments on commit ddac928

Please sign in to comment.