diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index e0a5de32d6..1b9d5096f4 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -1585,12 +1585,13 @@ void Preamble::parse(Parser & p, string const & forceclass, continue; } - else if (t.cs() == "date") { + if (t.cs() == "date") { string argument = p.getArg('{', '}'); if (argument.empty()) h_suppress_date = "true"; else h_preamble << t.asInput() << '{' << argument << '}'; + continue; } if (t.cs() == "color") {