Re: Quoting in InsetCommands

2001-12-06 Thread Andre Poenitz
On Thu, Dec 06, 2001 at 10:34:48AM +0100, Jean-Marc Lasgouttes wrote: > > "John" == John Levon <[EMAIL PROTECTED]> writes: > > John> An unanswered question: is it OK to add code to quote '_' etc. > John> in InsetCommand::asLyXCommand() so the user doesn't have to ? > > Yes, but we should als

Re: Quoting in InsetCommands

2001-12-06 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> An unanswered question: is it OK to add code to quote '_' etc. John> in InsetCommand::asLyXCommand() so the user doesn't have to ? Yes, but we should also make sure the reLyX unquotes it. To know which characters have to be changed. Lo

Quoting in InsetCommands

2001-12-05 Thread John Levon
An unanswered question: is it OK to add code to quote '_' etc. in InsetCommand::asLyXCommand() so the user doesn't have to ? I would like (for this purpose) to add LRegExp::replace(pattern, replacement) : regexp.replace("[^\\]_", "\\_"); What other chars need to be escaped ? thanks john --