In this approach every possible newline character is converted internally to a common newline (which one does not really matter since it is an internal operation just for rendering)