Re: [code] [textadept] Replace with lua pattern and newlines

From: Mitchell <m.att.foicica.com>
Date: Fri, 8 Nov 2013 08:44:39 -0500 (Eastern Standard Time)

Robert,

On Thu, 7 Nov 2013, Robert Gieseke wrote:

> Hi,
>
> if I have
>
> keys['a\n']
>
> in a document and try to find and replace the single quotes with double
> quotes by putting '(.-)' and "%1" in the search box I get
>
> keys["a
> "]
>
> Is there a workaround for this or is there some escaping missing?

This is definately a bug. Until I fix it, you can workaround it by
replacing with the horrendously ugly

   %(('%1'):gsub('\n','\\\\n'))

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 08 Nov 2013 - 08:44:39 EST

This archive was generated by hypermail 2.2.0 : Sat 09 Nov 2013 - 06:42:44 EST