Moved get line ending method up into a dialect abstract