From 50c6ba17e5650454760a9d6a0bb48c13ba255e54 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Sat, 22 Aug 2009 16:06:19 +0000 Subject: [PATCH] Fix of issue when searching at paragraph boundaries when non-ignoring format. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31201 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index aedc8f8e76..37aa28ab69 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -765,8 +765,8 @@ string MatchStringAdv::normalize(docstring const & s) const while ((pos = t.find("\n")) != string::npos) t.replace(pos, 1, " "); // Remove stale empty \emph{}, \textbf{} and similar blocks from latexify - LYXERR(Debug::FIND, "Removing stale empty \\emph{}, \\textbf{} macros from: " << t); - while (regex_replace(t, t, "\\\\(emph|textbf)(\\{\\})+", "")) + 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); return t; } -- 2.39.2