Fix bug 3404 (from Bo Peng)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19114 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2007-07-18 10:49:33 +00:00
parent 8397a051fa
commit 74f45fc0e9

View File

@ -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