From 69fd1193e5a86b16e7ebd947cfc39d0a856d6e10 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 1 Apr 2010 23:31:05 +0000 Subject: [PATCH] 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 --- src/tex2lyx/text.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 88515f0ac6..cb487560b2 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -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"; -- 2.39.2