mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 11:32:21 +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>
|
2004-08-16 José Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
* lyx_1_4.lyx (convert_comment, convert_breaks, convert_frameless_box):
|
* 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
|
#but if this happens deal with it greacefully adding
|
||||||
#the missing \end_deeper.
|
#the missing \end_deeper.
|
||||||
i = len(lines) - 1
|
i = len(lines) - 1
|
||||||
lines[i:i] = ["\end_deeper","","","\\end_inset","",""]
|
lines[i:i] = ["\end_deeper",""]
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
del lines[i]
|
del lines[i]
|
||||||
@ -304,11 +304,11 @@ def add_end_layout(lines):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if token == "\\end_deeper":
|
if token == "\\end_deeper":
|
||||||
lines.insert(i,"")
|
if struct_stack[-1] == '\\layout':
|
||||||
lines.insert(i,"\\end_layout")
|
lines.insert(i, '\\end_layout')
|
||||||
i = i + 3
|
i = i + 1
|
||||||
while struct_stack[-1] != "\\begin_deeper":
|
|
||||||
struct_stack.pop()
|
struct_stack.pop()
|
||||||
|
i = i + 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
#case \end_document
|
#case \end_document
|
||||||
|
Loading…
Reference in New Issue
Block a user