Prevent printing empty lines in output
This commit is contained in:
@ -154,7 +154,7 @@ CodeOceanEditorEvaluation = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
printWebsocketOutput: function (msg) {
|
printWebsocketOutput: function (msg) {
|
||||||
if (!msg.data) {
|
if (!msg.data || msg.data === "\r") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
msg.data = msg.data.replace(/(\r)/gm, "\n");
|
msg.data = msg.data.replace(/(\r)/gm, "\n");
|
||||||
|
Reference in New Issue
Block a user