mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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).
This commit is contained in:
parent
0a93c9b70f
commit
5bfd1c22d2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user