Skip to content

Commit 289b597

Browse files
authored
Merge pull request #286 from FoamyGuy/fix_extra_empty_lines_usb_repl
remove \r from file contents when read via USB repl
2 parents abae501 + d653287 commit 289b597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/common/repl-file-transfer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FileTransferClient {
3535
if (contents === null) {
3636
return raw ? null : "";
3737
}
38-
return contents;
38+
return contents.replaceAll("\r\n", "\n");
3939
}
4040

4141
async writeFile(path, offset, contents, modificationTime, raw = false) {

0 commit comments

Comments
 (0)