lineending
Line ending, also called end-of-line (EOL) or newline, refers to a character or sequence signaling the end of a line of text. It marks where one line ends and the next begins in files and data streams. The exact characters vary by system: Unix-like systems use a single line feed character LF (U+000A). Windows uses a carriage return followed by a line feed CRLF (U+000D U+000A). Classic Mac OS used a single carriage return CR (U+000D) for line termination in older days.
The concept originates from typewriter and teleprinter controls, where CR returned the print head and LF moved
When files are transferred between systems, line endings may be converted depending on the transfer mode (text
Handling: editors may detect and preserve or convert endings, display them, or normalize on save. The choice