remove trailing blank lines