Line endings are controlled by
\r (ASCII value
13)\n (ASCII value 10)Linux and macOS use LF, while Windows uses CRLF (\r\n)
\r, without \n following itYou can actually fix this, by not having a CR at all!
On a physical type writer, the carriage return slid the typing carriage back to the left
^M (control M) is the keyboard shortcut
for carriage return
On a typewriter, this moved the paper up, but didn't shift the carriage back to the left