fixing line ending inconsistencies