fix bug where \end_layout was showing after \end_deeper unconditionally

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8954 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2004-08-18 13:48:33 +00:00
parent f17505a8fb
commit 9d87888cf5
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-08-19 José Matos <jamatos@lyx.org>
* lyx_1_4.lyx (add_end_layout): fix \end_layout interaction with
\end_deeper.
2004-08-16 José Matos <jamatos@lyx.org>
* lyx_1_4.lyx (convert_comment, convert_breaks, convert_frameless_box):

View File

@ -211,7 +211,7 @@ def convert_comment(lines):
#but if this happens deal with it greacefully adding
#the missing \end_deeper.
i = len(lines) - 1
lines[i:i] = ["\end_deeper","","","\\end_inset","",""]
lines[i:i] = ["\end_deeper",""]
return
else:
del lines[i]
@ -304,11 +304,11 @@ def add_end_layout(lines):
continue
if token == "\\end_deeper":
lines.insert(i,"")
lines.insert(i,"\\end_layout")
i = i + 3
while struct_stack[-1] != "\\begin_deeper":
if struct_stack[-1] == '\\layout':
lines.insert(i, '\\end_layout')
i = i + 1
struct_stack.pop()
i = i + 1
continue
#case \end_document