Replace non-breaking spaces with regular spaces

This commit is contained in:
Gnome Ann 2021-08-25 19:25:57 -04:00
parent 5603bf0584
commit 5604d7f317
1 changed files with 1 additions and 1 deletions

View File

@ -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")});
}