Author: tommaso
Date: Thu May 26 15:44:44 2011
New Revision: 38839
URL: http://www.lyx.org/trac/changeset/38839
Log:
Now advanced find and replace doesn't ignore white spaces while matching with
ignore format.
This fixes #7584.
Modified:
lyx-devel/trunk/src/lyxfind.cpp
Modified: lyx-devel/trunk/src/lyxfind.cpp
==============================================================================
--- lyx-devel/trunk/src/lyxfind.cpp Thu May 26 15:36:05 2011 (r38838)
+++ lyx-devel/trunk/src/lyxfind.cpp Thu May 26 15:44:44 2011 (r38839)
@@ -791,8 +791,6 @@
// 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
?