newline

(redirected from /r/n)

newline

(character, jargon)
/n[y]oo'li:n/ Line feed or other character sequence used to terminate a line of text.

Unix uses line feed as its text line terminator - a Bell-Labs-ism rather than a Berkeleyism. Interestingly (and unusually for Unix jargon), it is said to have originally been an IBM usage. Though the term "newline" appears in ASCII standards, it never caught on in the general computing world before Unix. The encoding of line feed as "\n" in C and Unix strings comes from this name.

The term has been used more generally for any end of line character, character sequence (e.g. crlf), or operation (like Pascal's writeln procedure or Lisp 1.5's terpri) required to terminate a text record or separate lines.

line break

The end of a line of text in electronic form. Also called "EOL" (end-of-line), "newline," and "hard return," a line break code is generated when the Enter key is pressed, When typing a command on a command line, pressing Enter executes the command. When typing text, pressing Enter signifies the end of the paragraph, and subsequent text goes to the next line.

In word processing, line break codes, along with indent and other layout codes, are normally hidden on screen; however, a special, expanded mode may reveal them. Some text editors display line breaks as symbols (see below).

Different Codes for Windows and Mac
In Windows and DOS, the line break code is two characters: a carriage return followed by a line feed (CR/LF). In the Unix/Linux/Mac world, the code is just the line feed character (LF). In older Macs, the code was a single carriage return (CR); however, newer Macs also support old Mac documents. If line breaks are not converted between Windows and Mac platforms, the text displays and prints improperly. See soft return.


Support for All Platforms
This RazorSQL database browser provides line break conversion. The \r is programming code for the CR; the \n is for the LF (newline).







Look for 0A and 0D
The LF and CR are the 11th an 13th ASCII characters, which in this hexadecimal chart are 0A and 0D (see ASCII chart).







Paragraph Symbols Differ
Line breaks show up as different symbols, depending on the text editor.


Paragraph Symbols Differ
Line breaks show up as different symbols, depending on the text editor.