Re:My favourite Git commit (2019)
by rachelbythebay on Sunday March 08, 2020 @04:19PM
(#22520323)
I wonder: what is the bad character? It's apparently not 0x20, but what is it? How did it get there? What keeps this from happening again to someone else?
[ Parent
| on HN ]
It is U+00A0 [1], a non-breaking space [2], can be typed in some office applications using ⌃+⇧+␣.
Re:My favourite Git commit (2019)
by rachelbythebay on Sunday March 08, 2020 @06:36PM
(#22521112)
Ah, my old nemesis, the shifted space. Haven't been bitten by one of those in a while. Thanks for digging that up!
No-break spaces aka can be quite useful for preventing line breaks for example between a value and its unit, or between label and value. Or when writing for example 'e.g.', although you could argue that in this case a NARROW non-breaking space U+202F would be preferable.
Re:My favourite Git commit (2019)
by robert-boehnke on Sunday March 08, 2020 @04:22PM
(#22520346)
If I had to guess, the no break space that macOS has on [alt]-[space]: " ".
EDIT: Hmm, that doesn't seem to be it, here's the commit in question https://github.com/alphagov/govuk-puppet/commit/63b36f93bf75...