]> git.lyx.org Git - features.git/commitdiff
Amend 369828194361164 once more
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Dec 2023 10:18:42 +0000 (11:18 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Dec 2023 10:18:42 +0000 (11:18 +0100)
We need to trim off tabs and spaces

src/insets/InsetLayout.cpp

index 9d19d0c2d71ff3925c5fe227a6b753e639baa69d..8e5ed651cf4329dd90f1bb69a2536c7b2fde5f10 100644 (file)
@@ -892,7 +892,7 @@ void InsetLayout::readArgument(Lexer & lex)
                        arg.tooltip = lex.getDocString();
                } else if (tok == "requires") {
                        lex.eatLine();
-                       arg.required = lex.getString();
+                       arg.required = trim(lex.getString(true));
                } else if (tok == "decoration") {
                        lex.next();
                        arg.decoration = lex.getString();