On Tuesday 11 February 2003 04:55, Matthew Kelly wrote: > Hello all, > Does anyone have experience with using csv2lyx with lyx-1.3.0. I have > been using csv2lyx with lyx-1.2 and have had no problems. If I try to > open a lyx file created with csv2lyx with Lyx-1.3 i get the following > error
> Does anyone have a suggestion other than opening the file with 1.2 first Could you apply the following patch and tell me the result? If that works I will apply it to both 1.3.x and 1.4.0cvs > Matthew -- José Abílio
Index: lyxconvert_216.py =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/lyx2lyx/lyxconvert_216.py,v retrieving revision 1.6 diff -u -p -r1.6 lyxconvert_216.py --- lyxconvert_216.py 28 Aug 2002 13:07:50 -0000 1.6 +++ lyxconvert_216.py 11 Feb 2003 15:03:36 -0000 @@ -99,7 +99,7 @@ def update_tabular(lines): # the end variable refers to cell end, not to file end. end = find_tokens(lines, ['\\layout','\\the_end','\\end_deeper','\\end_float'], i) else: - end = find_token(lines, '\\newline ', i) + end = find_token(lines, '\\newline', i) if end == -1: sys.stderr.write("Malformed lyx file\n") @@ -111,7 +111,7 @@ def update_tabular(lines): del lines[i] end = end -1 - if lines[i] == '\\newline ': + if lines[i] == '\\newline': del lines[i] l = l + 1