Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 8e00331

Browse files
committed
Remove the replacement of line breaks by putting output button first
1 parent 88aa1ef commit 8e00331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function handleSuccess(message) {
128128
var output = "<a href=\"http://play.rust-lang.org/?code=" + program +
129129
"&run=1\"><i class=\"fa fa-external-link\"></i></a>"
130130
// console.log(output);
131-
resultDiv.innerHTML = escapeHTML(message).replace(/(<br ?\/?>)*/g,"") + output;
131+
resultDiv.innerHTML = output + escapeHTML(message);
132132
}
133133

134134
// Called when program run results in warning(s)

0 commit comments

Comments
 (0)