normalizeLineEnds

fun normalizeLineEnds(originalSource: String): Pair<String, String>

Given the exact source code of a module, replace line ends with "\n". Answer a Pair consisting of the new source and the line break string that was encountered (or "\n" if none).

Return

The Pair of normalized source and detected line-end string.

Parameters

originalSource

The source code extracted from a module file.