Page 1 of 1

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

Posted: Sat Aug 02, 2008 12:18 am
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!

Posted: Sat Aug 02, 2008 12:49 pm
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

Posted: Sat Aug 02, 2008 5:51 pm
by mmiller
Thanks Andrew - that was it :-)