Don't return yet! We need to check the other one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36034 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 12:20:03 +00:00
parent 3ac94820db
commit 155b339d84

View File

@ -864,13 +864,13 @@ def revert_custom_processors(document):
i = find_token(document.header, '\\bibtex_command', 0)
if i == -1:
document.warning("Malformed LyX document: Missing \\bibtex_command.")
return
del document.header[i]
else:
del document.header[i]
i = find_token(document.header, '\\index_command', 0)
if i == -1:
document.warning("Malformed LyX document: Missing \\index_command.")
return
del document.header[i]
else:
del document.header[i]
def convert_nomencl_width(document):