Skip to content

Commit ae743d5

Browse files
authored
Merge pull request #190 from gslowikowski/linux-newlines-on-windows-support-in-codegrid
Fix splitting source into lines on Windows OS when source file contains Linux line ending characters ("\n").
2 parents c1f9de4 + 883952c commit ae743d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/CodeGrid.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CodeGrid(mFile: MeasuredFile, sourceEncoding: Option[String]) {
1414

1515
case class Cell(char: Char, var status: StatementStatus)
1616

17-
private val lineBreak = System.getProperty("line.separator")
17+
private val lineBreak = "\n"
1818

1919
// Array of lines, each line is an array of cells, where a cell is a character + coverage info for that position
2020
// All cells default to NoData until the highlighted information is applied

0 commit comments

Comments
 (0)