Use trimmed string in [Inset]Layout Requires.

Fixes: #9518
This commit is contained in:
Juergen Spitzmueller 2015-05-19 10:17:34 +02:00
parent cf44bb842b
commit 4005a4d470
2 changed files with 3 additions and 3 deletions

View File

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

View File

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