mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Small fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5376 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eb5ffba9aa
commit
9daf926c02
@ -1,3 +1,8 @@
|
||||
2002-10-09 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* lyx2lyx/lyxconvert_218.py: Combine ert insets only when they are
|
||||
in the Standard layout.
|
||||
|
||||
2002-10-05 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* lyx2lyx/lyxconvert_218.py (fix_oldfloatinset): Search for
|
||||
|
@ -320,9 +320,13 @@ def remove_oldertinset(lines):
|
||||
i = i+1
|
||||
|
||||
def is_ert_paragraph(lines, i):
|
||||
if not check_token(lines[i], "\\layout Standard"):
|
||||
return 0
|
||||
|
||||
i = find_nonempty_line(lines, i+1)
|
||||
if not check_token(lines[i], "\\begin_inset ERT"):
|
||||
return 0
|
||||
|
||||
j = find_end_of_inset(lines, i)
|
||||
k = find_nonempty_line(lines, j+1)
|
||||
return check_token(lines[k], "\\layout")
|
||||
@ -333,7 +337,7 @@ def combine_ert(lines):
|
||||
i = find_token(lines, "\\begin_inset ERT", i)
|
||||
if i == -1:
|
||||
break
|
||||
j = find_token_backwards(lines,"\\layout", i-1)
|
||||
j = get_paragraph(lines, i)
|
||||
count = 0
|
||||
text = []
|
||||
while is_ert_paragraph(lines, j):
|
||||
|
Loading…
Reference in New Issue
Block a user