Skip to content

Commit 1847e2d

Browse files
authored
fix: pyright playground code requires new line
1 parent 1b6406f commit 1847e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/components/challenge_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
let playgroundLink = document.getElementById("playground-link");
112112
playgroundLink.addEventListener('click', function (event) {
113-
const code = myCodeMirror.getValue() + testCodeMirror.getValue();
113+
const code = myCodeMirror.getValue() + "\n\n" + testCodeMirror.getValue();
114114
this.href = "https://pyright-play.net/?code=" + LZString.compressToEncodedURIComponent(code);
115115
});
116116

0 commit comments

Comments
 (0)