Getting rid of the /n's when I paste...

General questions about using TextPad

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

Post Reply
User avatar
mmiller
Posts: 17
Joined: Tue Nov 25, 2003 11:49 pm
Location: Canada
Contact:

Getting rid of the /n's when I paste...

Post by mmiller »

Hi Folks!

I have a registered version of TextPad and I'm having an issue.

Whenever using search and replace I often paste the replacement data into the box. The problem is that if it's more then one line textpad always inserts a /n after each line.

This /n then shows up in the pasted text :-(

Am I doing something wrong or is there a way to stop it from doing that?

Thanks!
Best Regards;
Marvin Miller
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Marvin,

Selecting the "Regular expression" option in the Replace dialog should fix it. That allows "\n" to be recognised as a new line character.

It's unfortunate that when the option is off, TextPad inserts "\n"s into the Find and Replace fields because they're only meaningful when regular expressions are on, but once you understand the problem it's easy to work around it.

Andrew
User avatar
mmiller
Posts: 17
Joined: Tue Nov 25, 2003 11:49 pm
Location: Canada
Contact:

Post by mmiller »

Thanks Andrew - that was it :-)
Best Regards;
Marvin Miller
Post Reply