8000 Replace an NBSP (ASCII 160) with a space (ASCII 32) in sections.yml by alterationx10 · Pull Request #195 · mustache/spec · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace an NBSP (ASCII 160) with a space (ASCII 32) in sections.yml #195

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

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

alterationx10
Copy link
Contributor

I ran into an issue parsing the json version of this file on a linux/amd64 test runner (but not my local arm64 Mac). Took me a while to find it, but I believe it's because of this NBSP (ASCII 160) character.

Most parsers would probably handle this better than the one I made 😁 , but I also thought there wouldn't be any harm in swapping it out for an SPACE (ASCII 32)

Replace a NBSP (ASCII 160) with a space (ASCII 32)
Copy link
Member
@jgonggrijp jgonggrijp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for bringing this to our attention and for contributing a fix.

I reviewed the change with two other programs to triple-check that this is only replacing one NBSP with a regular space. I see no reason why that particular space would need to be a NBSP, so I agree this change is for the better.

If you don't mind, please update the JSON as well. Otherwise, just let me know and I will do it.

@alterationx10
Copy link
Contributor Author

I ran rake build, but on my machine it updates the NBSP, but it also modifies every json file (by re-formatting empty objects/arrays to be on one line stead of two), so I opted to remove the NBSP in the json manually, if that's ok.

@jgonggrijp jgonggrijp merged commit 9cb20c3 into mustache:master Jan 18, 2025
@mustache mustache deleted a comment from jjramon1699-ai Jan 28, 2025
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.

2 participants
0