From 3698281943611647738baba1b33a3bd08518e410 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 9 Nov 2023 22:06:39 +0100 Subject: [PATCH] Read separated required arg without enquoting --- src/Layout.cpp | 2 +- src/insets/InsetLayout.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5