On Thu, May 08, 2014 at 08:41:09AM +0200, Jürgen Spitzmüller wrote:
> 2014-05-08 8:29 GMT+02:00 Jürgen Spitzmüller <[email protected]>:
> 
> > Don't see this with current branch.
> >
> 
> Ah, you talk about opening in 2.0.x. Can you track it down further?

Jürgen, it seems that there is a problem when inserting an EndFrame layout.
Seemingly, these layouts are always enclosed in extra \end_layout and
\end_deeper tags. The attached patch against stable let me export Pavel's
example file to 2.0 correctly. However, I did no extra check, so I
leave to you judging whether it is the right patch or not.

Richard, maybe we need a 2.0.8.2 or a respin of 2.0.8.1.

-- 
Enrico
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index d327d87..63e8828 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -3608,10 +3608,10 @@ def revert_newframes(document):
             continue
         endseq = j
         subst = ["\\begin_layout %s" % frame_dict[val]]
-        esubst = ["\\end_layout", "", "\\begin_layout EndFrame", "", 
"\\end_layout"]
+        esubst = ["\\begin_layout EndFrame", "", "\\end_layout"]
         endseq = endseq + len(esubst) - len(document.body[j : j])
         if document.body[j] == "\\end_deeper":
-            document.body[j : j] = ["\\end_deeper", ""] + esubst
+            document.body[j : j] = [""] + esubst
         else:
             document.body[j : j] = esubst
         for q in range(i, j):

Reply via email to