You are here: PSPad forum > English discussion forum > Join Lines problem

Join Lines problem

#1 Join Lines problem

Posted by: maki | Date: 2017-11-09 14:05 | IP: IP Logged

How to join a line so that it does not add unnecessary empty spaces !!!angry smiley

ex:
1
2
3

Wrong:
1 2 3

I want:
123
I want to create a very long regex with file names, and the blank space in this case is invalid

Edited 1 time(s). Last edit at 2017-11-09 14:08 by maki.

Options: Reply | Quote | Up ^


#2 Re: Join Lines problem

Posted by: pspad | Date: 2017-11-09 17:55 | IP: IP Logged

Function result isn't wrong. It's as users wished it.
Do you want different functionality? You can simple do it with script. As inspiration you can take my List conversion script.

P.S. I was false. See the Andreas answer bellow

Edited 1 time(s). Last edit at 2017-11-09 21:51 by pspad.

Options: Reply | Quote | Up ^


#3 Re: Join Lines problem

Posted by: Andreas | Date: 2017-11-09 18:32 | IP: IP Logged

Jan, I think you have added the option Settings-Tools-"Merge lines" with space. Maybe he jutst needs to uncheck this setting.

Options: Reply | Quote | Up ^


#4 Re: Join Lines problem

Posted by: pspad | Date: 2017-11-09 21:51 | IP: IP Logged

Hello Andreas, you are right. There is option Join line - space as separator.
So Maki can change this option and can make Join line works as he need.

There is too many options sad smiley

Options: Reply | Quote | Up ^


#5 Re: Join Lines problem

Posted by: MichalKarlik | Date: 2017-11-10 06:04 | IP: IP Logged

Dear user,

you do job wrong way. Simply join lines and then remove spaces inside line(s) by embedded function.

It is all and simple.

Best regards,

Michal Karlik

Edited 2 time(s). Last edit at 2017-11-10 06:07 by MichalKarlik.

Options: Reply | Quote | Up ^


#6 Re: Join Lines problem

Posted by: maki | Date: 2017-11-10 11:37 | IP: IP Logged

To do it all, I have to do a lot of activities that all the names have to add a separator. "|" and ^ $ and delete the space if I want with a few thousand names to create a very long regex to later find files in all locations.

Another option would be MERGE and create from all lines of regex.
I'm not a script writer so I have no idea how to do it.

Options: Reply | Quote | Up ^


#7 Re: Join Lines problem

Posted by: pspad | Date: 2017-11-10 13:29 | IP: IP Logged

maki:
To do it all, I have to do a lot of activities that all the names have to add a separator. "|" and ^ $ and delete the space if I want with a few thousand names to create a very long regex to later find files in all locations.

Another option would be MERGE and create from all lines of regex.
I'm not a script writer so I have no idea how to do it.

Open program settings / Tools
Uncheck []Join line - space as separator
Use join line without included spaces

Options: Reply | Quote | Up ^


#8 Re: Join Lines problem

Posted by: MichalKarlik | Date: 2017-11-10 18:31 | IP: IP Logged

If your separator is unique and same, the second step should be simple - Find "separator" and Replace for "nothing" (simple embedded function).

Best regards,

Michal Karlik

Options: Reply | Quote | Up ^






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