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 6d055b1 + 6c2e350 commit e1557e5Copy full SHA for e1557e5
compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala
@@ -138,7 +138,7 @@ trait MessageRendering {
138
|${Blue("===========").show}""".stripMargin
139
)
140
sb.append(EOL).append(m.explanation)
141
- if (m.explanation.lastOption != Some(EOL)) sb.append(EOL)
+ if (!m.explanation.endsWith(EOL)) sb.append(EOL)
142
sb.toString
143
}
144
0 commit comments