Revert "No <EOL> should be written for the last line in the file"

This reverts commit 5b9d88e60a875fe3ac4e36d09adbbd90671eca99.