Textpad's use of CR LF line endings
Posted: Tue Sep 10, 2002 7:06 pm
Hello all,
When I create a Textpad file of type "Unix" with "ANSI" encoding, it uses normal LF endings like:
Hello{LF}
World{LF}
{LF}
But, when I use the "PC" type with "ANSI" encoding, it only uses CRLF on the final line:
Hello{LF}
World{LF}
{CR}{LF}
The "official" Windows line ending standard would call for {CR}{LF} terminators on each line. The Textpad help file claims that PC-type files have a CRLF terminator on each line, but they don't -- only the final 2 bytes of a multi-line file contain CRLF.
This behavior doesn't cause any problems for me but I would really like to know why they choose that convention. I have looked everywhere for info on this but can't find any good explanation.
Regards,
Reuben
When I create a Textpad file of type "Unix" with "ANSI" encoding, it uses normal LF endings like:
Hello{LF}
World{LF}
{LF}
But, when I use the "PC" type with "ANSI" encoding, it only uses CRLF on the final line:
Hello{LF}
World{LF}
{CR}{LF}
The "official" Windows line ending standard would call for {CR}{LF} terminators on each line. The Textpad help file claims that PC-type files have a CRLF terminator on each line, but they don't -- only the final 2 bytes of a multi-line file contain CRLF.
This behavior doesn't cause any problems for me but I would really like to know why they choose that convention. I have looked everywhere for info on this but can't find any good explanation.
Regards,
Reuben