To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=15666





------- Additional comments from [EMAIL PROTECTED] Sat Feb 11 05:57:05 -0800 
2006 -------
I've attached my proposal to this problem (only for writer for now). Since this
is my first patch, I don't know that much about hacking OOo. So while the code
does what I want (using \n in replace string inserts the content of the nth
bracket), it might not please everyone.
And at some places I'm not even sure how to handle the one or another situation
(How should '\x' in the replace string be treated? since it hasn't any special
meaning. Or how should '\4' in the replace string be handled if there's no
capture group 4?).

Besides adding the ability to use \1, \2 a.s.o. in the replace string, I also
removed the special meaning of & (in text replace, not in attribute or format
replace) since this is non standard and unexpected (although documented
behaviour). Instead \0 now does the same trick and is more straightforward.
Also something like '\\\t' now works as I'd expect: '\'0x09. Formerly it
resulted in the string '\\t'.

I didn't try implementing \s as placeholder for whitespace. This would have
required hacking the regex lib (OOo uses a modified version of the GNU regular
expression library 0.12 which also misses some advanced features like non greedy
quantifiers) quite deep. IMHO this should be better some other bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to