Get rid of f**king Windows end-of-line characters
I hate it so much. Die, die, stupid \r
This commit is contained in:
parent
9c7f04ec61
commit
310ece7f2d
@ -446,7 +446,7 @@ getInputSourceIfNeeded forced metrics directory inputFilePath
|
|||||||
|
|
||||||
fileAsLineSource :: SourceSpec -> (Text -> Text) -> LineSource (ResourceT IO)
|
fileAsLineSource :: SourceSpec -> (Text -> Text) -> LineSource (ResourceT IO)
|
||||||
fileAsLineSource spec preprocess =
|
fileAsLineSource spec preprocess =
|
||||||
LineSource ((smartSource spec) .| autoDecompress .| CT.decodeUtf8Lenient .| CT.lines) preprocess spec 1
|
LineSource ((smartSource spec) .| autoDecompress .| CT.decodeUtf8Lenient .| CT.lines .| CC.map (dropAround (== '\r'))) preprocess spec 1
|
||||||
|
|
||||||
gevalCoreOnSingleLines :: Metric -> (Text -> Text) -> LineInFile -> LineInFile -> LineInFile -> IO (MetricValue)
|
gevalCoreOnSingleLines :: Metric -> (Text -> Text) -> LineInFile -> LineInFile -> LineInFile -> IO (MetricValue)
|
||||||
gevalCoreOnSingleLines metric preprocess inpLine expLine outLine =
|
gevalCoreOnSingleLines metric preprocess inpLine expLine outLine =
|
||||||
|
Loading…
Reference in New Issue
Block a user