Add an EOL at the end of document after formatting

Fix #36