Mail formatting

Stan Barr stanb at dial.pipex.com
Sun Dec 30 05:05:31 CST 2007


Hi,
der Mouse said:
> >>> "What is the ASCII code for newline?"
> >> 0x0a, one of whose names is NL.  This is well-defined.
> > There is no ASCII code for "newline".
> 
> Hm, I was under the impression that 0x0a had two names, LF (line feed)
> and NL (newline), and that it was up to each sender and receiver using
> the code to decide which meaning they'd use.
> 
> This impression dates back long enough that I no longer have any idea
> where I got it, but it must ahve been a source authoritative-seeming
> enough for me to have believd it at the time.  Someday I should go look
> up the real X3.4....

It's the other one: 0x0d...

CR   Control M    13    0D    0001101     Carriage Return
A format effector that controls the movement of the printing position to the
first printing position on the same printing line.  In some cases the CR will
incorporate an automatic line feed (LF) as either a default or an option. 
This feature, called New Line (NL), is used to make computer keyboards more
like those of typewriters.

>From X3.4-1977

 
-- 
Cheers,
Stan Barr  stanb at dial.pipex.com

The future was never like this!




More information about the cctalk mailing list