mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Now advanced find and replace doesn't ignore white spaces while matching with ignore format.
This fixes #7584. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38839 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b51df2761b
commit
c92c9057e1
@ -791,8 +791,6 @@ MatchStringAdv::MatchStringAdv(lyx::Buffer & buf, FindAndReplaceOptions const &
|
|||||||
// Remove trailing closure of math, macros and environments, so to catch parts of them.
|
// Remove trailing closure of math, macros and environments, so to catch parts of them.
|
||||||
do {
|
do {
|
||||||
LYXERR(Debug::FIND, "par_as_string now is '" << par_as_string << "'");
|
LYXERR(Debug::FIND, "par_as_string now is '" << par_as_string << "'");
|
||||||
if (regex_replace(par_as_string, par_as_string, "(.*)[[:blank:]]\\'", "$1"))
|
|
||||||
continue;
|
|
||||||
if (regex_replace(par_as_string, par_as_string, "(.*[^\\\\]) ?\\$\\'", "$1"))
|
if (regex_replace(par_as_string, par_as_string, "(.*[^\\\\]) ?\\$\\'", "$1"))
|
||||||
continue;
|
continue;
|
||||||
// @todo need to account for open square braces as well ?
|
// @todo need to account for open square braces as well ?
|
||||||
|
Loading…
Reference in New Issue
Block a user