Fix line breaking before EOF