Small fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5360 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-10-05 12:59:04 +00:00
parent 64368af9ec
commit 3a8ef790c8
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-05 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_218.py (fix_oldfloatinset): Search for
"\begin_inset Float " to avoid matching "\begin_inset FloatList".
2002-10-01 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_218.py: Handle end_deeper "inside" ERT.

View File

@ -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] = '<row topline="%s" bottomline="%s" newpage="%s">' % (bool_table[val[0]], bool_table[val[1]], bool_table[val[2]])
i = i + 1

View File

@ -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):