Try to configure your editor to not kill trailing newlines (or if you did this manually, don't do it).