From 23defe0e4f2d9d1523fb8111e6e70982dfbf5919 Mon Sep 17 00:00:00 2001 From: John Levon Date: Sun, 5 Jan 2003 22:08:22 +0000 Subject: [PATCH] fix lyx2lyx bugs git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5904 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 4 ++++ lib/lyx2lyx/lyxconvert_215.py | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 9709d0e1fc..8c61fce784 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-01-05 John Levon + + * lyx2lyx/lyxconvert_215.py: handle \lyxrcsid, \lyxvcid, \cursor + 2003-01-04 Dekel Tsur * lyx2lyx/lyxconvert_220.py: Fix alignment of fixed width columns. diff --git a/lib/lyx2lyx/lyxconvert_215.py b/lib/lyx2lyx/lyxconvert_215.py index 9f26a1ea62..1dbc589bd2 100644 --- a/lib/lyx2lyx/lyxconvert_215.py +++ b/lib/lyx2lyx/lyxconvert_215.py @@ -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) -- 2.39.5