Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why use a CR/LF at end of line?

CR LF line
0
0 Posted

Why use a CR/LF at end of line?

0
0

CR/LF can lead to double-spacing, notably on Mac and Unix, but at least there is a CR in there for Mac users, and there is an LF for *nix users. If you don’t know or care what this is about, please skip blithely on. There are three differing standards for how to represent the end of a line of text. In brief, Apple Macs use the CR character. Unix and its variants use the LF character. Microsoft systems, from MS-DOS through Windows, use both together. If you want the history behind these: CR stands for Carriage Return, and comes from the old typewriter / teletype idea of a command to move the print head from the right of the page back to the left when it reaches the end; LF stands for Line Feed, and comes from the old typewriter / teletype idea of a command to move the print head down a line; CR/LF together indicate moving down a line and back to the left of the page. The history is not relevant to today’s computers in principle, but in practice they all use one of these legacy conventio

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123