]> git.lyx.org Git - features.git/commitdiff
Open or closed braces ({ or }) are now translated to non-braces fake constructs while...
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 28 Jan 2010 17:26:18 +0000 (17:26 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Thu, 28 Jan 2010 17:26:18 +0000 (17:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33248 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 88c9461a38bfcc9a75ac1bf565cdb8f32ea4efb0..d26da0f2e3c93db1cfd3844e2b63853c42e13a44 100644 (file)
@@ -805,6 +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, "\\}", "@##@)");
        return t;
 }