Skip to content

Commit 72e9b93

Browse files
committed
preprocessor: Properly replace \r\n with \n when importing files
1 parent 69b71a2 commit 72e9b93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/source/pl/core/resolvers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ namespace pl::core::resolvers {
4242
return Result::err("Path " + utf8 + " is not a regular file");
4343
}
4444

45-
const auto content = file.readString();
45+
auto content = file.readString();
46+
content = wolv::util::replaceStrings(content, "\r\n", "\n");
4647

4748
return Result::good(api::Source(content, utf8, false));
4849
}

0 commit comments

Comments
 (0)