mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
7137b48f46
commit
23defe0e4f
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user