delete trailing empty line.