Open
Description
When using the collectFile
, the files being collected may have a specific line ending (e.g. \n
for unix, \r\n
for windows), but adding a newLine
uses System.lineSeparator
. I would like the line ending used in collectFile
to prioritize the line endings that are found in the file. A potential solution would be to inspect the bytes as they're being written to detect any line endings and use that.