mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
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:
parent
f17505a8fb
commit
9d87888cf5
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user