]> git.lyx.org Git - features.git/commitdiff
Fix bug #6219: Latex problem with multi-line citep arguments
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 1 Apr 2010 23:31:05 +0000 (23:31 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 1 Apr 2010 23:31:05 +0000 (23:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34011 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 88515f0ac62320b4c8bd41e8e3e229670ba24a60..cb487560b2e612d638b25cf323d1e6762b59b632 100644 (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";