Fix bug 436

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5922 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-01-08 15:47:15 +00:00
parent 3426dc660f
commit 25cebf4af3
2 changed files with 9 additions and 1 deletions

View 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:

View 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)