Skip to content

Fix splitting source into lines on Windows OS when source file contains Linux line ending characters ("\n"). #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CodeGrid(mFile: MeasuredFile, sourceEncoding: Option[String]) {

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

private val lineBreak = System.getProperty("line.separator")
private val lineBreak = "\n"

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