How do I keep UNIX line endings

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hn

How do I keep UNIX line endings

Post by hn »

Hi,

When I edit a text file that exists on UNIX file system, texdpad is adding ^M charaters at the end of each line. What do I do to keep the UNIX line endings.

Thank you,
Hari.
Berend Hasselman

Re: How do I keep UNIX line endings

Post by Berend Hasselman »

This is weird.
TextPad determines the file type on opening the file.
It retains the file type when saving and will use linefeeds.
It may be that your file contains one line with a CR/LF combination. Textpad will then regard the file as a PC file.

So the first thing you should do is right click in the edit window, select Properties and the General tab and look at the File type.
If it says anything other than UNIX, your file is not what you think it is.

You can save your file with a different type by choosing Save As and changing the File Type.

succes,

Berend
Post Reply