Le 14/12/2015 03:32, Richard Heck a écrit :
On 12/13/2015 10:11 PM, Guillaume Munch wrote:
Le 14/12/2015 03:01, Richard Heck a écrit :
On 12/13/2015 09:09 AM, David wrote:
Hi,

I've noticed that Lyx inserts a \par before the end of a center
environment. I'm curious: why is that done and can it be prevented?

There is an answer to this, but to be honest I do not remember what it
is. It cannot be
prevented, as it is hardcoded. But if you don't want it, you can always
use ERT.



The good news is that this is fixed in 2.2 according to my tests. As I
just learnt, this is thanks to Enrico who removed many superfluous par
breaks in Lyx's output.

I still see it in current master.

% Preview source code for paragraph 1

\begin{center}

this is centered

\par\end{center}

See Paragraph::Private::endTeXParParams.

Richard



Sorry, I misunderstood. I thought David was speaking of the additional line break *before* the centering environment, which indeed disappears from 2.1 to 2.2. I completely missed the \par!


Reply via email to