From: Dekel Tsur Date: Fri, 17 Jan 2003 08:20:52 +0000 (+0000) Subject: Fix lyx2lyx to handle reLyX files X-Git-Tag: 1.6.10~17673 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d65166096449b4c58577df0ffda767f72a783e5a;p=lyx.git Fix lyx2lyx to handle reLyX files git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5968 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 7abfbc22c1..a8d4b1062a 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-01-17 Dekel Tsur + + * lyx2lyx/lyxconvert_218.py (change_listof): Handle reLyX files. + 2003-01-15 Jean-Marc Lasgouttes * ui/default.ui: re-add ellipsis on some menu entries diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index 184146e7fc..d193a09f44 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -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