diff --git a/.gitattributes b/.gitattributes index cbdcbbc25..ca3f85b65 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ *.js text eol=lf +*.dat text eol=crlf diff --git a/src/cds/src/main/kotlin/org/icpclive/cds/testsys/TestSysDataSource.kt b/src/cds/src/main/kotlin/org/icpclive/cds/testsys/TestSysDataSource.kt index 77534e62d..3c46f6649 100644 --- a/src/cds/src/main/kotlin/org/icpclive/cds/testsys/TestSysDataSource.kt +++ b/src/cds/src/main/kotlin/org/icpclive/cds/testsys/TestSysDataSource.kt @@ -21,7 +21,7 @@ internal class TestSysDataSource(val settings: TestSysSettings) : FullReloadCont Charset.forName("windows-1251") ) }.map { - it.split("\r\n").filter(String::isNotEmpty) + it.split("\r\n", "\n").filter(String::isNotEmpty) } override suspend fun loadOnce(): ContestParseResult {