]> git.lyx.org Git - features.git/commitdiff
amend 11e4a24e6edbd1f
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 11 Mar 2018 18:49:28 +0000 (19:49 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 11 Mar 2018 18:51:53 +0000 (19:51 +0100)
(cherry picked from commit 386d9953e83a35dcc3b0f173faa92d9e9fc16f0f)

src/tex2lyx/Preamble.cpp

index e0a5de32d693ecc3a2e6f4b3e19188ba34d84bf1..1b9d5096f44ecae66cbe7fcae52d0900953b6e33 100644 (file)
@@ -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") {