Prevent printing empty lines in output

This commit is contained in:
Sebastian Serth
2020-11-24 00:22:56 +01:00
parent 1df4685f38
commit 6c5052ed84

View File

@ -154,7 +154,7 @@ CodeOceanEditorEvaluation = {
},
printWebsocketOutput: function (msg) {
if (!msg.data) {
if (!msg.data || msg.data === "\r") {
return;
}
msg.data = msg.data.replace(/(\r)/gm, "\n");