Comment by layer8
6 days ago
More generally, any textual file format where whitespace is significant at the end of a line is calling for trouble.
6 days ago
More generally, any textual file format where whitespace is significant at the end of a line is calling for trouble.
Maybe. But expecting people to remember a ; (or similar) at the end of lines is going to cause more frequent problems from a UX performance.
So you’re better off accepting the edge cases problems that white space introduces considering the benefits outweighs the pain.
That’s not what I meant. It’s okay for the line break itself to be significant. But whitespace immediately preceding the line break shouldn’t be significant, due to its general invisibility.
Is CR considered whitespace? I always thought that was classed as a non-printable control character. But maybe I’m wrong?
Or are you talking about SP preceding CR and/or LF?
2 replies →