]> git.lyx.org Git - features.git/commitdiff
output_latex.cpp: fix regression, reported here: http://www.mail-archive.com/lyx...
authorUwe Stöhr <uwestoehr@web.de>
Thu, 30 Oct 2008 23:19:21 +0000 (23:19 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 30 Oct 2008 23:19:21 +0000 (23:19 +0000)
I tested it carefully but in case this makes problems, please revert this immediately.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27205 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.cpp

index 90af09a5dc5d2e247c33444e1d2b16e46ed2731e..ce5be3911d37c4b37c6452ec37297e015ea38eca 100644 (file)
@@ -157,7 +157,8 @@ TeXEnvironment(Buffer const & buf,
        }
 
        if (style.isEnvironment()) {
-               os << "\\begin{" << from_ascii(style.latexname()) << '}';
+               // \begin must start on a new line
+               os << "\n\\begin{" << from_ascii(style.latexname()) << '}';
                if (style.optionalargs > 0) {
                        int ret = latexOptArgInsets(*pit, os, runparams,
                                                    style.optionalargs);