Use trimmed string in [Inset]Layout Requires.

Fixes: #9518
This commit is contained in:
Juergen Spitzmueller 2015-05-19 16:55:49 +02:00
parent f0bb9b32d1
commit 183204ffba
2 changed files with 4 additions and 4 deletions

View File

@ -542,8 +542,8 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass)
case LT_REQUIRES: {
lex.eatLine();
vector<string> const req =
getVectorFromString(lex.getString());
vector<string> const req =
getVectorFromString(lex.getString(true));
requires_.insert(req.begin(), req.end());
break;
}

View File

@ -389,8 +389,8 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
break;
case IL_REQUIRES: {
lex.eatLine();
vector<string> const req
= support::getVectorFromString(lex.getString());
vector<string> const req
= support::getVectorFromString(lex.getString(true));
requires_.insert(req.begin(), req.end());
break;
}