From 71f8cee976f9446de672f6e9f02a24200114c9c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 9 May 2008 09:50:18 +0000 Subject: [PATCH] * src/InsetIndex: further corrections od LaTeX output. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24696 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetIndex.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2