From 7a52f14bc001f89289fe8c5bdd93b003911ce63d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 1 Oct 2009 09:58:53 +0000 Subject: [PATCH] fix bug #6249: optional argument of \bibitem is not imported correctly by tex2lyx git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31489 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 89e26da81c..558462e593 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -1453,8 +1453,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, context.check_layout(os); begin_inset(os, "LatexCommand "); os << t.cs() << "\n"; - os << p.getOpt(); - os << "key " << '"' << p.verbatim_item() << '"' << "\n"; + os << "label \"" << p.getOptContent() << "\"\n"; + os << "key \"" << p.verbatim_item() << "\"\n"; end_inset(os); } -- 2.39.5