From 3a8ef790c8802aa6dc6cf654aa8724a08ee1d89f Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Sat, 5 Oct 2002 12:59:04 +0000 Subject: [PATCH] Small fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5360 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/lyx2lyx/lyxconvert_217.py | 1 + lib/lyx2lyx/lyxconvert_218.py | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index ba8537a196..0c84fd64fc 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2002-10-05 Dekel Tsur + + * lyx2lyx/lyxconvert_218.py (fix_oldfloatinset): Search for + "\begin_inset Float " to avoid matching "\begin_inset FloatList". + 2002-10-01 Dekel Tsur * lyx2lyx/lyxconvert_218.py: Handle end_deeper "inside" ERT. diff --git a/lib/lyx2lyx/lyxconvert_217.py b/lib/lyx2lyx/lyxconvert_217.py index 3b27d54c93..2d52ef5815 100644 --- a/lib/lyx2lyx/lyxconvert_217.py +++ b/lib/lyx2lyx/lyxconvert_217.py @@ -86,6 +86,7 @@ def table_update(lines): res = row_re.match(lines[i]) if res: val = res.groups() + sys.stderr.write("%s, %s, %s %s\n" %(val[0],val[1],val[2],lines[i])) lines[i] = '' % (bool_table[val[0]], bool_table[val[1]], bool_table[val[2]]) i = i + 1 diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index 8602ca4904..d915f2e3b7 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -441,12 +441,13 @@ def update_tabular(lines): def fix_oldfloatinset(lines): i = 0 while 1: - i = find_token(lines, "\\begin_inset Float", i) + i = find_token(lines, "\\begin_inset Float ", i) if i == -1: break j = find_token(lines, "collapsed", i) if j != -1: lines[j:j] = ["wide false"] + sys.stderr.write("i,j=%d,%d\n" % (i,j)) i = i+1 def change_listof(lines):