Skip to content
Merged
Prev Previous commit
Next Next commit
indentation fix
  • Loading branch information
Vipul-Cariappa committed Jun 7, 2024
commit e65cfe1206d640821bc6f2d492d2f03b416d865e
2 changes: 1 addition & 1 deletion src/libasr/string_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::string read_file(const std::string &filename)
std::vector<char> bytes(filesize);
ifs.read(&bytes[0], filesize);

return std::string(&bytes[0], filesize);
return replace(std::string(&bytes[0], filesize), "\r\n", "\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's open an issue that our tokenizer/parser should be updated/fixed to produce the same tokens/parse-tree on windows and unix.

}

std::string parent_path(const std::string &path) {
Expand Down