Fixes #79 - Take into account `view.settings().get(default_line_ending)` when choosing what line endings to use