Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ensure_single_trailing_newline() on macs.
I'm not sure exactly why mac's version of sed produces different output here but it is easy enough to use something simpler. Just check if the last character is a newline: if not, then append a newline character.
- Loading branch information