From: Juergen Spitzmueller Date: Thu, 9 Nov 2023 21:06:39 +0000 (+0100) Subject: Read separated required arg without enquoting X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=369828194361164;p=features.git Read separated required arg without enquoting --- diff --git a/src/Layout.cpp b/src/Layout.cpp index 1035c0bc0c..0c62a0d4c5 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -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(); diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index fc1a53c7ff..9d19d0c2d7 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -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();