Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upConstantly getting 'irregular whitespace' when using || #455
Comments
This comment has been minimized.
This comment has been minimized.
|
I can't think of how this could be caused by It's worth noting that on OS X typing ALT+SPACE inserts a non-breaking space character (which looks the same as a space, but isn't a normal space). Maybe that's the issue? No idea how the issue could come back when you re-open the file. Sounds like your editor is modifying files automatically when they're opened. |
feross
closed this
Mar 11, 2016
This comment has been minimized.
This comment has been minimized.
|
It's not alt+space, that's for sure. I'm using editorconfig which is the only package capable of editing files when opened afaik. I'll keep looking |
This comment has been minimized.
This comment has been minimized.
|
You could open the file in a hex editor to see what got inserted |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Cuel commentedMar 10, 2016
Hi. I'm using Atom with this editorconfig
.eslintrc
EDIT:
I'm not entirely sure when it happens. It seems to be when strings are involved, e.g this will always cause it
The above always results in
Irregular whitespace not allowed at line xxHappens on both Mac and Windows
The position is always just before the ||
I can fix it temporarly by going to the position, pressing backspace and space again.
It works until I open the file again. I'm not sure if this is a standard, eslint or atom issue.
Is this a known issue?