]> git.lyx.org Git - lyx.git/commitdiff
Read separated required arg without enquoting
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 9 Nov 2023 21:06:39 +0000 (22:06 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 9 Nov 2023 21:06:39 +0000 (22:06 +0100)
src/Layout.cpp
src/insets/InsetLayout.cpp

index 1035c0bc0cf26ecda80316a80c65536102ad73f1..0c62a0d4c51ec7f3861739f5b393ecf5bdcee3fa 100644 (file)
@@ -1264,7 +1264,7 @@ void Layout::readArgument(Lexer & lex, bool validating)
                        lex.next();
                        arg.tooltip = lex.getDocString();
                } else if (tok == "requires") {
-                       lex.next();
+                       lex.eatLine();
                        arg.required = lex.getString();
                } else if (tok == "decoration") {
                        lex.next();
index fc1a53c7ff8269d85ff0191c40091519125c85b3..9d19d0c2d71ff3925c5fe227a6b753e639baa69d 100644 (file)
@@ -891,7 +891,7 @@ void InsetLayout::readArgument(Lexer & lex)
                        lex.next();
                        arg.tooltip = lex.getDocString();
                } else if (tok == "requires") {
-                       lex.next();
+                       lex.eatLine();
                        arg.required = lex.getString();
                } else if (tok == "decoration") {
                        lex.next();