]> git.lyx.org Git - features.git/commitdiff
Now advanced find and replace doesn't ignore white spaces while matching with ignore...
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 26 May 2011 13:44:44 +0000 (13:44 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Thu, 26 May 2011 13:44:44 +0000 (13:44 +0000)
This fixes #7584.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38839 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 158a2705aea27e0b8faa5724784f5989cd947383..62b0b1c29ac1f14d86ece5020a9583eb6e2aa0ab 100644 (file)
@@ -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.
                do {
                        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"))
                                        continue;
                        // @todo need to account for open square braces as well ?