From e40bd3f5ad701ea02f1c303b31495e0886135a45 Mon Sep 17 00:00:00 2001 From: lyonsyonii Date: Tue, 12 Dec 2023 09:59:09 +0100 Subject: [PATCH] FIX: user-presented strings are now correctly trimmed --- frontend/src/components/CodeQuestion.astro | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/CodeQuestion.astro b/frontend/src/components/CodeQuestion.astro index 44b50ab..7aa1e56 100644 --- a/frontend/src/components/CodeQuestion.astro +++ b/frontend/src/components/CodeQuestion.astro @@ -35,12 +35,11 @@ const { {setup} {validator} code={code.trim()} - {errorMsg} - {placeholder} + errorMsg={errorMsg.trim()} + placeholder={placeholder.trim()} {showLineNumbers} {editable} {lang} {id} /> - - @i18n/_langs + \ No newline at end of file