]> git.lyx.org Git - features.git/commitdiff
Make the fake sequence for braces highly unlikely (addressing #6478).
authorTommaso Cucinotta <tommaso@lyx.org>
Fri, 29 Jan 2010 07:35:13 +0000 (07:35 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Fri, 29 Jan 2010 07:35:13 +0000 (07:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33253 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index d26da0f2e3c93db1cfd3844e2b63853c42e13a44..0f36ca3c82bbb9269f538ec886095362eb2a77cf 100644 (file)
@@ -805,8 +805,8 @@ string MatchStringAdv::normalize(docstring const & s) const
        LYXERR(Debug::FIND, "Removing stale empty \\emph{}, \\textbf{}, \\*section{} macros from: " << t);
        while (regex_replace(t, t, "\\\\(emph|textbf|subsubsection|subsection|section|subparagraph|paragraph)(\\{\\})+", ""))
                LYXERR(Debug::FIND, "  further removing stale empty \\emph{}, \\textbf{} macros from: " << t);
-       regex_replace(t, t, "\\{", "@##@(");
-       regex_replace(t, t, "\\}", "@##@)");
+       regex_replace(t, t, "\\{", "@##£$%@(");
+       regex_replace(t, t, "\\}", "@##£$%@)");
        return t;
 }