From 5bfd1c22d25e992ff0519931e1fb5590fc1e9024 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 29 Dec 2014 21:54:15 +0100 Subject: [PATCH] Skip missing optional argument insets in tex2lyx Optional arguments are optional, so if one is missing, do not stop the parsing, but continue with the next argument (it might be a required one). --- src/tex2lyx/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 8f136647c5..7bb0a3fe30 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -644,7 +644,7 @@ void output_arguments(ostream & os, Parser & p, bool outer, Context & context, } else { if (p.next_token().cat() == catEscape || p.next_token().character() != '[') - break; + continue; p.get_token(); // eat '[' begin_inset(os, "Argument "); os << i << "\nstatus collapsed\n\n"; -- 2.39.2