Add removal of end of line terminator on last line