6

I hate trailing space in Text Documents.
All my hommies hate trailing space in Text Documents.

Comments
  • 2
    I hate them so much that I even run a search for " \n" through my sources after editing so that I can remove this shit.
  • 3
    All my hommies appreciate a blank line in the end though, please leave it 😌
  • 1
  • 2
    @c3r38r170 Because some tools misbehave when they encounter EOF at the last line where they expect \n.

    E.g. the C standard actually mandates the source file to end with a \n - which is why I do have the empty line there, for strict ISO conformance. It also helps when #including files to avoid messing up with the next file.
  • 1
    I use the trailing spaces package in sublime text 3. There's probably wondering similar in vscode and vim.
  • 2
    I’ve run so many source files through sed for this exact freaking reason. Ugh.
  • 2
    @lungdart My vim auto-strips it on save. :)

    Makes other devs mad about all of the changes. But their changes adding it make me mad, so we’re even.
  • 2
    Same. Also auto add a trailing new line to the end of files, and replace \r and \r\n with \n

    The one true new line
Add Comment