Updated SC1018 (markdown)

koalaman
2015-07-25 14:03:36 -07:00
parent a7e76c99cd
commit dda7802625

@@ -1,7 +1,7 @@
# This is a  . Delete it and retype as space.
# This is a unicode non-breaking space. Delete it and retype as space.
You copy-pasted some code, probably from a blog or web site, which for formatting reasons contained unicode no-break spaces instead of regular spaces.
You copy-pasted some code, probably from a blog or web site, which for formatting reasons contained unicode no-break spaces or unicode zero-width spaces instead of regular spaces or in words.
They look the same to humans, but not to shells.
To humans, a zero-width space is invisible and a non-breaking space is indistinguishable from a regular space, but the shell does not agree.
If you have just a few, delete the space and retype it. If you have tons, do a search&replace in your editor (copy-paste an offending space into the search field, and type a regular space into the replace field), or use `sed -e $'s/\xC2\xA0/ /g' -i yourfile`.
If you have just a few, delete the indiciated space/word and retype it. If you have tons, do a search&replace in your editor (copy-paste an offending space into the search field, and type a regular space into the replace field), or use `sed -e $'s/\xC2\xA0/ /g' -e $'s/\xE2\x80\x8b//g' -i yourfile` to remove them.