From 5604d7f3172e19cbc4dbc66e47f31e89c46f7ce9 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Wed, 25 Aug 2021 19:25:57 -0400 Subject: [PATCH] Replace non-breaking spaces with regular spaces --- static/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/application.js b/static/application.js index 905242d5..c7eab749 100644 --- a/static/application.js +++ b/static/application.js @@ -735,7 +735,7 @@ function submitEditedChunk(event) { // Submit the edited chunk if it's not empty, otherwise delete it if(chunk.innerText.length) { - socket.send({'cmd': 'inlineedit', 'chunk': chunk.getAttribute("n"), 'data': chunk.innerText}); + socket.send({'cmd': 'inlineedit', 'chunk': chunk.getAttribute("n"), 'data': chunk.innerText.replace(/\u00a0/g, " ")}); } else { socket.send({'cmd': 'inlinedelete', 'data': chunk.getAttribute("n")}); }