From 3c5e4c0662c56d7be49d62662988408e6cf50102 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 27 Jul 2023 13:44:37 +0200 Subject: [PATCH] updated the new line character --- frontend/src/ts/test/test-ui.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index 1be75a142..084b58ae2 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -165,7 +165,7 @@ function getWordHTML(word: string): string { retval += ``; } else if (word.charAt(c) === "\n") { newlineafter = true; - retval += ``; + retval += ``; } else { retval += "" + word.charAt(c) + ""; } @@ -544,7 +544,7 @@ export function updateWordElement(showError = !Config.blindMode): void { ret += ``; } else if (TestInput.input.current[i] === "\n") { newlineafter = true; - ret += ``; + ret += ``; } else { ret += `${TestInput.input.current[i]}`; } @@ -615,7 +615,7 @@ export function updateWordElement(showError = !Config.blindMode): void { currentLetter = ``; } else if (currentLetter === "\n") { nlChar = "nlChar"; - currentLetter = ``; + currentLetter = ``; } if (charCorrect) { @@ -676,7 +676,7 @@ export function updateWordElement(showError = !Config.blindMode): void { } else if (currentWord[i] === "\t") { ret += ``; } else if (currentWord[i] === "\n") { - ret += ``; + ret += ``; } else { ret += `