Add warning, save cycles.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36036 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 12:23:36 +00:00
parent 18a30566cb
commit 248bd19a72

View File

@ -911,14 +911,14 @@ def revert_nomencl_cwidth(document):
j = find_end_of_inset(document.body, i)
l = find_token(document.body, "width", i, j)
if l == -1:
#Can't find width option for nomencl_print
i = j
continue
document.warning("Can't find width option for nomencl_print!")
i = j
continue
width = get_value(document.body, "width", i, j).strip('"')
del document.body[l]
add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
add_to_preamble(document, ["\\setlength{\\nomlabelwidth}{" + width + "}"])
i = i + 1
i = j - 1
def revert_applemac(document):