lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I wrote:

> Let me make sure I understand you, though -- a CR and a NL
> next to each other (in DOS order) would get converted into
> just one NL and not two, right?

Roberto wrote:

> Right. The same for a sequence NL-CR.

That wouldn't be quite what I expected, but let me exhaust
some possibilities and you can correct me if I'm wrong on
any of them (<X> represents anything other than <CR>
or <NL>).  I'm guessing that all of the following

<X> <NL> <NL> <X>
<X> <NL> <CR> <NL> <CR> <X>
<X> <CR> <CR> <X>
<X> <NL> <CR> <NL> <CR> <X>

will be treated as

<X> <NL> <NL> <X>

(The fourth possibility is less important, since it'll never
occur in a proper text file.)

Am I right on all of these?

-- 
Aaron