From: Tommaso Cucinotta Date: Thu, 28 Jan 2010 17:26:18 +0000 (+0000) Subject: Open or closed braces ({ or }) are now translated to non-braces fake constructs while... X-Git-Tag: 2.0.0~4209 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c6784d708d4c8a6890d684c06ab10cb0554c0258;p=features.git Open or closed braces ({ or }) are now translated to non-braces fake constructs while searching (fixes #6478, avoiding assert). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33248 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 88c9461a38..d26da0f2e3 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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; }