]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Further to r26743, add CustomPars and ForcePlain layout tags to InsetLayout,
[lyx.git] / src / output_latex.cpp
index cc6373ff319ed1afaecd7c07250fda7c5d01c436..646e836480751b3c6323d1ea1cd8ce3888f36b2e 100644 (file)
@@ -294,7 +294,10 @@ TeXOnePar(Buffer const & buf,
        if (nextpit != paragraphs.end())
                ++nextpit;
 
-       if (runparams_in.verbatim) {
+       OutputParams runparams = runparams_in;
+       runparams.isLastPar = nextpit == paragraphs.end();
+
+       if (runparams.verbatim) {
                int const dist = distance(paragraphs.begin(), pit);
                Font const outerfont = outerFont(dist, paragraphs);
 
@@ -305,14 +308,13 @@ TeXOnePar(Buffer const & buf,
                }
 
                /*bool need_par = */ pit->latex(bparams, outerfont,
-                       os, texrow, runparams_in);
+                       os, texrow, runparams);
                return nextpit;
        }
 
        Layout const style = pit->forcePlainLayout() ?
                bparams.documentClass().plainLayout() : pit->layout();
 
-       OutputParams runparams = runparams_in;
        runparams.moving_arg |= style.needprotect;
 
        bool const maintext = text.isMainText(buf);