What editor are you using that's stripping newlines from the end of files?