line ending handling