Fix bug #6219: Latex problem with multi-line citep arguments

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34011 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-04-01 23:31:05 +00:00
parent ba97587b16
commit 69fd1193e5

View File

@ -1981,10 +1981,14 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
if (!after.empty()) {
after.erase(0, 1);
after.erase(after.length() - 1, 1);
// LyX cannot handle newlines in the parameter
after = subst(after, "\n", " ");
}
if (!before.empty()) {
before.erase(0, 1);
before.erase(before.length() - 1, 1);
// LyX cannot handle newlines in the parameter
before = subst(before, "\n", " ");
}
begin_inset(os, "LatexCommand ");
os << t.cs() << "\n";