From: Jürgen Spitzmüller Date: Fri, 9 May 2008 09:50:18 +0000 (+0000) Subject: * src/InsetIndex: further corrections od LaTeX output. X-Git-Tag: 1.6.10~4834 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=71f8cee976f9446de672f6e9f02a24200114c9c8;p=features.git * src/InsetIndex: further corrections od LaTeX output. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24696 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index da82e7e64a..c6a008c5f1 100644 --- a/src/insets/InsetIndex.cpp +++ b/src/insets/InsetIndex.cpp @@ -57,7 +57,10 @@ int InsetIndex::latex(odocstream & os, // e.g. \index{LyX@\LyX}, \index{text@\textbf{text}} // Don't do that if the user entered '@' himself, though. if (contains(ods.str(), '\\') && !contains(ods.str(), '@')) { - if (InsetText::plaintext(os, runparams) > 0) { + odocstringstream odss; + if (InsetText::plaintext(odss, runparams) > 0) { + // remove remaining \'s for the sorting part + os << subst(odss.str(), from_ascii("\\"), docstring()); os << '@'; sorted = true; }