]> git.lyx.org Git - features.git/commitdiff
Don't use .extend() (doesn't work in python 1.5)
authorDekel Tsur <dekelts@tau.ac.il>
Wed, 28 Aug 2002 12:02:55 +0000 (12:02 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Wed, 28 Aug 2002 12:02:55 +0000 (12:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5133 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyxconvert_217.py

index 4a389fecc620d221936c3449b1f7e507bba333e8..876604ed2c11da9eb767ee6437aeab752b6c646d 100644 (file)
@@ -41,10 +41,7 @@ def update_tabular(lines):
             break
 
         new_table = table_update(lines[i:j])
-        tail = lines[j:]
-        lines[i:] = []
-        lines.extend(new_table)
-        lines.extend(tail)
+       lines = lines[:i] + new_table + lines[j:]
         i = i + len(new_table)
 
 col_re = re.compile(r'<column alignment="(\d)" valignment="(\d)" leftline="(\d)" rightline="(\d)" width="(.*)" special="(.*)">')