Posted by: Zereges | Date: 2014-09-01 00:10 | IP: IP Logged
Basicly, using Find&Replace feature to replace substring to newline (\n) produces weird behaviour while "Prompt Each Replace" option is checked.
How to reproduce:
- Start PSPad. (126.96.36.1990)
- Paste any text with delimiters. (Text1;Text2;Text3;Text4;Text5)
- Get back to start of the file
- Press CTRL-H
- Type delimiter substring to Find (;)
- Type \n to Replace
- Set Prompt Each Replace and Regular Expressions options
- Press OK and then click on Yes multiple times (not YesToAll)
First delimiter is properly found, then few button clicks makes nothing and then another delimiter is found. This repeats. (In specified example you must click Yes button 10 times)
What should happen:
Yes button should replace delimiter (it does) and then move to next find (it does not). (In my example Yes button should be clicked 5 times)
Posted by: Andreas | Date: 2014-09-01 02:31 | IP: IP Logged
Yes that is weird. You have to set your cursor at end of file and then replace backwards (set direction to backwards).
PSPad is handling newlines badly on replacing and even is not able to search for newlines.
Posted by: pspad | Date: 2014-09-01 04:38 | IP: IP Logged
Some fixes was made in 4.5.8 builds
Posted by: Andreas | Date: 2014-09-01 15:04 | IP: IP Logged
I'm on 4.5.8 2485 but nothing has changed. Am I missing something?
How to search for newline char and replace them with new text?
How to replace found text with newline char forward?