Skip to content

Commit

Permalink
strip whitespace from received lines
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarshall committed Jul 11, 2024
1 parent 4ec6e6f commit b528c1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pytest_pyodide/node_test_driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ rl.on("line", async function (line) {
return;
}
if (line !== cur_uuid) {
if(line.endsWith("\n")){
line=line.substring(0,line.length()-1)
}
if(line.endsWith("\r")){
line=line.substring(0,line.length()-1)
}
if( line.trim() === ""){
cur_code += "\n";
}else{
Expand Down

0 comments on commit b528c1e

Please sign in to comment.