The patch...
2015-04-26 16:46 GMT+02:00 Jürgen Spitzmüller:
> 2015-04-26 15:36 GMT+02:00 Kornel Benko:
>
>> I had to add
>> \usepackage{hyperref}
>> \usepackage{pdfcomment}
>>
>> to the preamble, to make it compilable. This should be done automatically
>> either by lyx (using hyperlinks)
>> or by the pdfcomment.module (for the package pdfcomment)
>>
>> Kornel
>
>
>
> The attached patch fixes it for me. However, I wonder if it is intentional
> that Lexer::Pimpl::eatLine() does not ignore \t.
>
> Opinions?
>
> Jürgen
>
>
diff --git a/src/Layout.cpp b/src/Layout.cpp
index 1e89433..ca445c2 100644
--- a/src/Layout.cpp
+++ b/src/Layout.cpp
@@ -565,7 +565,7 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass
const & tclass)
case LT_REQUIRES: {
lex.eatLine();
vector<string> const req =
- getVectorFromString(lex.getString());
+ getVectorFromString(subst(lex.getString(),
'\t', ' '));
requires_.insert(req.begin(), req.end());
break;
}
diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp
index 6e081d9..80af8c9 100644
--- a/src/insets/InsetLayout.cpp
+++ b/src/insets/InsetLayout.cpp
@@ -439,7 +439,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const &
tclass)
case IL_REQUIRES: {
lex.eatLine();
vector<string> const req
- = support::getVectorFromString(lex.getString());
+ =
support::getVectorFromString(support::subst(lex.getString(), '\t', ' '));
requires_.insert(req.begin(), req.end());
break;
}