Fix linefeed at EOF