Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Post bodies sometimes use nbsp instead of spaces on Firefox

A topic by Autumn Rivers created 53 days ago Views: 147 Replies: 4
Viewing posts 1 to 3
(1 edit) (+2)

This has been tripping me up for months now, and I finally decided to look into it...

Nearly every time I type a long sentence into the body text of a post, it comes out with weird formatting, creating weird newlines where they shouldn't be. You'll probably see them on this post. I couldn't, for the life of me, figure out what could be causing this, but I just figured it out. Take the following text:

Only XInput/Xbox controllers are officially supported by me. However, theoretically, any gamepad that is officially supported by Godot should work, you just won't get the correct button hints or button prompts.

It's just a normal sentence, in which I used the spacebar to create spaces. If you look at it in code:

Only XInput/Xbox controllers are officially supported by me. However, theoretically, any gamepad that is officially supported by Godot should work, you just won't get the correct button hints or button prompts.

(EDIT: The nbsp characters only show up in the code when pasting the text in the post body itself, go figure... putting the text through a hex editor like HxD shows that sometimes `A0` (non-breaking space character) is where `20` (space) should be.)

And I didn't do anything to it afterwards. This has been an issue for me on Firefox for months now, and the only fix I've found is to switch to Chrome, which I do not wish to do.

I thought this might've been an issue with one of my extensions, but the issue still occurs even on a clean install of Firefox.

OS: Windows 11 Home (24H2)

Browser: Firefox 135.0.1 (64-bit)

(+1)

seconding.  notably, it seems like pressing shift-space will deliberately insert a nbsp, so my best guess is that some flag is getting stuck and thinks shift is being held even when it isn't?  but sometimes the editor transitions into nbsps even without my pressing shift at all

This has been bothering me for some time as well. Nice to know that a different browser might help though, will try.

it also doesn't seem to happen to me on linux, if that helps  8)

Haven’t used linux in a long time haha, but thanks!