From 25cebf4af3d3851f59a00e7ce2a9488f1756851a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Wed, 8 Jan 2003 15:47:15 +0000 Subject: [PATCH] Fix bug 436 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5922 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/lyx2lyx/parser_tools.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 0fd66ca8fb..3a28155bc2 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-01-08 José Abílio Oliveira Matos + + * lyx2lyx/parser_tools.py (get_value): make it robust to the + no argument case. + 2003-01-07 Jean-Marc Lasgouttes * bind/xemacs.bind: diff --git a/lib/lyx2lyx/parser_tools.py b/lib/lyx2lyx/parser_tools.py index e24d5bd36c..adf711b99d 100644 --- a/lib/lyx2lyx/parser_tools.py +++ b/lib/lyx2lyx/parser_tools.py @@ -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) -- 2.39.5