fix: replace non-breaking space with regular space - in Unicode, it is represented as U+00A0, whereas a standard space bar hit is U+0020#806
Conversation
…s represented as U+00A0, whereas a standard space bar hit is U+0020
|
One question before i merge: |
|
Let me know is this helpful - I can add in separate MR automated check + fix commands to be run locally and as CICD quality gates. |
|
Please don't submit any automated / AI PRs to this repo. Thank you :) |
I did not test. Let me know how to enable and see such views and I will test (as by chance I know Polish). What's the minspec (browser versions supported, viewpors and devices supported)? I will test against that. From language point of view keeping those as NBSP or not makes little if no difference. |
I did it myself. You don't want to remove NBSP? You think the screenshot was done by AI? |
|
@ashwalk33r All good, no hard feelings please :) |
The character I replaced is a Non-Breaking Space (often abbreviated as NBSP).
In Unicode, it is represented as U+00A0, whereas a standard space bar hit is U+0020.
To the naked eye, it looks exactly like a regular space, but it behaves very differently under the hood.
A standard space tells a browser or word processor, "You can break the line here if you run out of room." A Non-Breaking Space does the exact opposite. It creates a space between two words but forces them to stay glued together on the same line, preventing an awkward line break (word wrap).
It is redundant and is problematic to work with thus I've replace it repo-wide with a regular space.
I've found it by browsing lang files as VS Code highlighted it in distinct way (look at the "yellow orange-ish" in the line 53):