diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index 93f3bc7a5d..6dc1fc297d 100644 --- a/lib/layouts/beamer.layout +++ b/lib/layouts/beamer.layout @@ -1036,7 +1036,7 @@ Style LyX-Code # define the environment lyxcode Preamble \newenvironment{lyxcode} - {\begin{list}{}{ + {\par\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright diff --git a/lib/layouts/lyxmacros.inc b/lib/layouts/lyxmacros.inc index 6376006a11..b4b5e3992e 100644 --- a/lib/layouts/lyxmacros.inc +++ b/lib/layouts/lyxmacros.inc @@ -25,7 +25,7 @@ Style LyX-Code FreeSpacing 1 Preamble \newenvironment{lyxcode} - {\begin{list}{}{ + {\par\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright