Add a newline to a line that doesn't end with one.

Closes #115.