By default, use an argument's menu string as its label string.

If one wants different label strings, then provide those first.
This commit is contained in:
Richard Kimberly Heck 2021-03-15 18:25:39 -04:00
parent 7f590bc2a9
commit affd6101bd

View File

@ -770,6 +770,8 @@ void InsetLayout::readArgument(Lexer & lex)
} else if (tok == "menustring") { } else if (tok == "menustring") {
lex.next(); lex.next();
arg.menustring = lex.getDocString(); arg.menustring = lex.getDocString();
if (arg.labelstring.empty())
arg.labelstring = arg.menustring;
} else if (tok == "mandatory") { } else if (tok == "mandatory") {
lex.next(); lex.next();
arg.mandatory = lex.getBool(); arg.mandatory = lex.getBool();