[LyX/master] Amend 369828194361164 once more

Juergen Spitzmueller spitz at lyx.org
Sun Dec 3 08:55:32 UTC 2023


commit ac5cc017179cdff6113b5605f325ae29299ff479
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Dec 3 11:18:42 2023 +0100

    Amend 369828194361164 once more
    
    We need to trim off tabs and spaces
---
 src/insets/InsetLayout.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp
index 9d19d0c..8e5ed65 100644
--- a/src/insets/InsetLayout.cpp
+++ b/src/insets/InsetLayout.cpp
@@ -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();


More information about the lyx-cvs mailing list