From 31602a1da26db1cb882aa05968eeeacb96827aa4 Mon Sep 17 00:00:00 2001 From: ewandor Date: Mon, 8 Jul 2024 18:30:14 +0200 Subject: [PATCH] Removing nbsp bug --- src/Editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.ts b/src/Editor.ts index b3bdece..98c16bb 100644 --- a/src/Editor.ts +++ b/src/Editor.ts @@ -103,7 +103,7 @@ export class Editor { } else { if (line.lyrics != "") { current_paragraph.appendChild( - document.createTextNode(line.lyrics.replace(" ", " ")) + document.createTextNode(line.lyrics.replace(" ", "\u00A0")) ); } else if (line.chords.length > 0) { for (let chord of line.chords) {