Do not keep trailing empty lines.