From 74f45fc0e933fcbe05a68168b26ecd66a06ea40e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Wed, 18 Jul 2007 10:49:33 +0000 Subject: [PATCH] Fix bug 3404 (from Bo Peng) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19114 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_4.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/lyx2lyx/lyx_1_4.py b/lib/lyx2lyx/lyx_1_4.py index d5d6b88ecb..06c6a23e1f 100644 --- a/lib/lyx2lyx/lyx_1_4.py +++ b/lib/lyx2lyx/lyx_1_4.py @@ -466,6 +466,9 @@ def add_end_layout(document): document.body.insert(i,"") document.body.insert(i,"\\end_layout") i = i + 3 + # consecutive begin_deeper only insert one end_layout + while document.body[i].startswith('\\begin_deeper'): + i += 1 struct_stack.append(token) continue -- 2.39.2