]> git.lyx.org Git - lyx.git/commitdiff
Fix listpreamble breakage by 6f643e52d434
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Dec 2020 14:25:14 +0000 (15:25 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Dec 2020 14:25:14 +0000 (15:25 +0100)
src/Layout.cpp

index ff123dc32ef74c84eb76b00956dfdec4b67026c3..63a5dc47d2eb685920ad735fbf91210002682895 100644 (file)
@@ -1193,6 +1193,10 @@ void Layout::readArgument(Lexer & lex, bool validating)
                        latexargs_));
        latexarg & arg = lam[id];
 
+       if (listpreamble)
+               // list preamble has no delimiters by default
+               arg.nodelims = true;
+
        bool error = false;
        bool finished = false;
        while (!finished && lex.isOK() && !error) {