fix lyx2lyx bugs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5904 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-01-05 22:08:22 +00:00
parent 7137b48f46
commit 23defe0e4f
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-05 John Levon <levon@movementarian.org>
* lyx2lyx/lyxconvert_215.py: handle \lyxrcsid, \lyxvcid, \cursor
2003-01-04 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_220.py: Fix alignment of fixed width columns.

View File

@ -94,7 +94,22 @@ def update_toc(lines):
lines[i] = lines[i] + '{}'
i = i + 1
def remove_cursor(lines):
i = find_token(lines, '\\cursor', 0)
if i != -1:
del lines[i]
def remove_vcid(lines):
i = find_token(lines, '\\lyxvcid', 0)
if i != -1:
del lines[i]
i = find_token(lines, '\\lyxrcsid', 0)
if i != -1:
del lines[i]
def convert(header,body):
remove_vcid(header)
remove_cursor(body)
update_toc(body)
replace_protected_separator(body)
merge_formula_inset(body)