Lars Gullik Bjønnes wrote:
> This is the cut down version.
>
> | @@ -1400,7 +1400,8 @@ sub ConvertToLayout {
> |      print "\nChanging $dummy $name to layout $layout" if $debug_on;
> |  
> |      # Nest if the layout stack has more than just "Standard" in it
> | -    if ($#{$CurrentLayoutStack} > 0) {
> | +    if ($#{$CurrentLayoutStack} > 0
> | +     && $CurrentLayoutStack =~ /^$ListLayouts$/o) {
> |       # Die here for sections & things that can't be nested!
> |       print " Nesting!" if $debug_on;
> |       print OUTFILE "\n\\begin_deeper ";
> | @@ -1474,7 +1475,8 @@ sub EndLayout {
> |      #     \end_deeper \begin_deeper in the LyX file. It's sloppy
> |      #     but it works, and LyX will get rid of it when it
> |      #     resaves the file.
> | -    if ($#{$CurrentLayoutStack} > 0) {
> | +    if ($#{$CurrentLayoutStack} > 0
> | +     && $CurrentLayoutStack =~ /^$ListLayouts$/o) {
> |       print " End Nesting!" if $debug_on;
> |       print OUTFILE "\n\\end_deeper ";
> |      }

This does still loop on my test file (export -- reimport the attached LyX 
file).

Jürgen.
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Enumerate

one
\layout Enumerate


\begin_inset Float table
wide false
collapsed true

\layout Standard
\align center 

\begin_inset  Tabular
<lyxtabular version="3" rows="1" columns="1">
<features>
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0(null)">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
</row>
</lyxtabular>

\end_inset 


\layout Caption

a table
\end_inset 


\layout Enumerate

three
\the_end

Reply via email to