From 1847e2dab7c50c10db0b20e0006cebab82764870 Mon Sep 17 00:00:00 2001 From: Keming Date: Thu, 10 Apr 2025 14:50:32 +0800 Subject: [PATCH] fix: pyright playground code requires new line --- templates/components/challenge_area.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/challenge_area.html b/templates/components/challenge_area.html index f64f6ad..3a0e21f 100644 --- a/templates/components/challenge_area.html +++ b/templates/components/challenge_area.html @@ -110,7 +110,7 @@ let playgroundLink = document.getElementById("playground-link"); playgroundLink.addEventListener('click', function (event) { - const code = myCodeMirror.getValue() + testCodeMirror.getValue(); + const code = myCodeMirror.getValue() + "\n\n" + testCodeMirror.getValue(); this.href = "https://pyright-play.net/?code=" + LZString.compressToEncodedURIComponent(code); });