mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31061 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7cf4a9fb9f
commit
a492f5d553
@ -765,9 +765,9 @@ 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::DEBUG, "Removing stale empty \emph{}, \textbf{} macros from: " << t);
|
||||
LYXERR(Debug::DEBUG, "Removing stale empty \\emph{}, \\textbf{} macros from: " << t);
|
||||
while (regex_replace(t, t, "\\\\(emph|textbf)(\\{\\})+", ""))
|
||||
LYXERR(Debug::DEBUG, " further removing stale empty \emph{}, \textbf{} macros from: " << t);
|
||||
LYXERR(Debug::DEBUG, " further removing stale empty \\emph{}, \\textbf{} macros from: " << t);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user