]> git.lyx.org Git - features.git/commitdiff
fix bug #6249: optional argument of \bibitem is not imported correctly by tex2lyx
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 1 Oct 2009 09:58:53 +0000 (09:58 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 1 Oct 2009 09:58:53 +0000 (09:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31489 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 89e26da81cca7c26a2ec3177911cd8d43d359893..558462e593075e43d7bb0298eb75e8b0c9aac9f3 100644 (file)
@@ -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);
                }