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

Use a regular space #55

Merged
merged 1 commit into from
Oct 5, 2021
Merged

Use a regular space #55

merged 1 commit into from
Oct 5, 2021

Conversation

dentarg
Copy link
Contributor

@dentarg dentarg commented Oct 4, 2021

Sublime Text 4 showed the space as <0ax0>

irb(main):016:0> " ".bytes
=> [194, 160]
irb(main):017:0> " ".bytes
=> [32]

That's a "NO-BREAK SPACE" in UTF-8: https://en.wikipedia.org/wiki/Non-breaking_space#Encodings

It is easy to accidentally type the no-break space in macOS (Option+Space)

Sublime Text 4 showed the space as "<0ax0>"

    irb(main):016:0> " ".bytes
    => [194, 160]
    irb(main):017:0> " ".bytes
    => [32]

That's a "NO-BREAK SPACE" in UTF-8: https://en.wikipedia.org/wiki/Non-breaking_space#Encodings

It is easy to accidentally type the no-break space in macOS (Option+Space)
@mafredri mafredri merged commit 3ba6e2d into mafredri:master Oct 5, 2021
@mafredri
Copy link
Owner

mafredri commented Oct 5, 2021

Good catch, thanks!

@dentarg dentarg deleted the space branch October 5, 2021 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants