Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace NBSP by spaces #1207

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Replace NBSP by spaces #1207

merged 1 commit into from
Sep 15, 2021

Conversation

kinow
Copy link
Collaborator

@kinow kinow commented Sep 15, 2021

Was reading the code, searching for language label/value, and noticed the NBSP character. It's not really a space char, although most browsers/IDE's support it, it can still cause issues when refactoring with a regex like \s for instance.

The GitHub UI will show like a space. But if you open on PhpStorm, or vim (click G followed by A to show the current char code in the status bar of vim) you should be able to see the char.

@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.9% 1.9% Duplication

@osma
Copy link
Member

osma commented Sep 15, 2021

Good catch @kinow ! I take it that you searched for NBSP characters in the full codebase and these were the only occurrences?

@kinow
Copy link
Collaborator Author

kinow commented Sep 15, 2021

Good catch @kinow ! I take it that you searched for NBSP characters in the full codebase and these were the only occurrences?

There were two other, but in those i18n files (.po?). Couldn't tell if the files were generated via that transifex scropt or if I could change them.

@osma osma added the bug label Sep 15, 2021
@osma osma added this to the 2.12 milestone Sep 15, 2021
@osma osma merged commit 33a2222 into NatLibFi:master Sep 15, 2021
@osma osma self-assigned this Sep 15, 2021
@osma
Copy link
Member

osma commented Sep 15, 2021

OK, let's leave those for later. Merged, thanks!

@kinow kinow deleted the replace-nbsp-space branch September 15, 2021 10:32
@kinow kinow restored the replace-nbsp-space branch September 15, 2021 10:32
@kinow kinow deleted the replace-nbsp-space branch September 15, 2021 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants