]> git.lyx.org Git - features.git/commitdiff
Fix bug 436
authorJosé Matox <jamatos@lyx.org>
Wed, 8 Jan 2003 15:47:15 +0000 (15:47 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 8 Jan 2003 15:47:15 +0000 (15:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5922 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/parser_tools.py

index 0fd66ca8fb0ee174dd870caa6a9d799fc7f90b2c..3a28155bc2219c056502dde475a31f74f720acde 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-08  José Abílio Oliveira Matos  <jamatos@lyx.org>
+
+       * lyx2lyx/parser_tools.py (get_value): make it robust to the
+       no argument case.
+
 2003-01-07  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * bind/xemacs.bind: 
index e24d5bd36cb375f6b24bc9c917fa8402da80451e..adf711b99d7ab6063af00acd1d5fa6121e40d855 100644 (file)
@@ -80,7 +80,10 @@ def get_value(lines, token, start, end = 0):
     i = find_token2(lines, token, start, end)
     if i == -1:
        return ""
-    return string.split(lines[i])[1]
+    if len(string.split(lines[i])) > 1:
+        return string.split(lines[i])[1]
+    else:
+        return ""
 
 def del_token(lines, token, i, j):
     k = find_token2(lines, token, i, j)