You are here: PSPad forum > English discussion forum > Line endings not maintaining

Line endings not maintaining

Goto Page: 1 2 Next

#1 Line endings not maintaining

Posted by: trainee.GED5 | Date: 07/26/2018 06:22 | IP: IP Logged

I have 15000 lines of arabic text written in unicode text file where I have proper line endings.

However, when I open this in PSPad the line endings are drastically changed.

Since I need to perform line manipulations, I only can work with PSPad. Help!

1) imgur.com

-
Sid

Edited 1 time(s). Last edit at 07/26/2018 06:24 by trainee.GED5.

Options: Reply | Quote | Up ^


#2 Re: Line endings not maintaining

Posted by: pspad | Date: 07/26/2018 06:46 | IP: IP Logged

Can I get file sample? Without this information I can't tell you what's wrong.
PSpad works with 3 types of line ends:
Windows: CrLf
Unix: Lf
Mac: Cr

Your file must contain something different.

Options: Reply | Quote | Up ^


#3 Re: Line endings not maintaining

Posted by: trainee.GED5 | Date: 07/26/2018 08:03 | IP: IP Logged

Options: Reply | Quote | Up ^


#4 Re: Line endings not maintaining

Posted by: pspad | Date: 07/26/2018 08:26 | IP: IP Logged

File not found.

Can you send me it as attachment into support mail?

Options: Reply | Quote | Up ^


#5 Re: Line endings not maintaining

Posted by: trainee.GED5 | Date: 07/26/2018 08:30 | IP: IP Logged

please try this:

ufile.io

Options: Reply | Quote | Up ^


#6 Re: Line endings not maintaining

Posted by: pspad | Date: 07/26/2018 08:34 | IP: IP Logged

Got it.
In your file on the end of second line:
0A " 0D 0A

Your file contains 2 different line ends

Options: Reply | Quote | Up ^


#7 Re: Line endings not maintaining

Posted by: trainee.GED5 | Date: 07/26/2018 08:36 | IP: IP Logged

please suggest how to change it and it is not 0D.. it is some arabic text.

Options: Reply | Quote | Up ^


#8 Re: Line endings not maintaining

Posted by: pspad | Date: 07/26/2018 11:04 | IP: IP Logged

No, it isn't Arabic text, it's Line end.
LF = 0A 00 (line feed)
CR = 0D 00 (cariage return)
" = 22 00

Your second line ends with 0A 00 22 00 0A 00 0D 00

LF standalone is used e,g, in MS Word as soft line break, Cr Lf as hard line break

Remove first 0A 00 before " on the line ends.
When you open it in Notepad, you will see same result as in PSPad

Options: Reply | Quote | Up ^


#9 Re: Line endings not maintaining

Posted by: trainee.GED5 | Date: 07/26/2018 11:09 | IP: IP Logged

Pardon for my stupidity, but I can't find the text you are referring to. I opened the text in PSPad and it is only numbers and arabic text in enquotes.

Options: Reply | Quote | Up ^


#10 Re: Line endings not maintaining

Posted by: pspad | Date: 07/26/2018 11:11 | IP: IP Logged

Hello. I opened your file in PSPad hex editor to see real content

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2018 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR