]> git.lyx.org Git - lyx.git/commitdiff
Fix lyx2lyx to handle reLyX files
authorDekel Tsur <dekelts@tau.ac.il>
Fri, 17 Jan 2003 08:20:52 +0000 (08:20 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Fri, 17 Jan 2003 08:20:52 +0000 (08:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5968 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/lyxconvert_218.py

index 7abfbc22c1f4a49ccf325c58f9101f1799defa8f..a8d4b1062a5c06eb86c0c009a9af57f99249bfd8 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-17  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lyx2lyx/lyxconvert_218.py (change_listof): Handle reLyX files.
+
 2003-01-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * ui/default.ui: re-add ellipsis on some menu entries
index 184146e7fc2907729e4d3aad21a7006fda63bd50..d193a09f4498882079126230b8a06be85e0815e7 100644 (file)
@@ -473,7 +473,7 @@ def change_listof(lines):
        i = find_token(lines, "\\begin_inset LatexCommand \\listof", i)
        if i == -1:
            break
-        type = lines[i][33:-3]
+        type = re.search(r"listof(\w*)", lines[i]).group(1)[:-1]
         lines[i] = "\\begin_inset FloatList "+type
         i = i+1