From 4005a4d470acbecb1ed06c50f3680def6c4edf10 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 19 May 2015 10:17:34 +0200 Subject: [PATCH] Use trimmed string in [Inset]Layout Requires. Fixes: #9518 --- src/Layout.cpp | 4 ++-- src/insets/InsetLayout.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Layout.cpp b/src/Layout.cpp index 60ff5cd043..748d867a36 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -564,8 +564,8 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass) case LT_REQUIRES: { lex.eatLine(); - vector const req = - getVectorFromString(lex.getString()); + vector const req = + getVectorFromString(lex.getString(true)); requires_.insert(req.begin(), req.end()); break; } diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index 468f7286bd..c6b94d438b 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -441,7 +441,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass) case IL_REQUIRES: { lex.eatLine(); vector const req - = getVectorFromString(lex.getString()); + = getVectorFromString(lex.getString(true)); requires_.insert(req.begin(), req.end()); break; }