From 248bd19a7284d1a7a119e3ee5f6b5b8a17e7fb74 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 4 Nov 2010 12:23:36 +0000 Subject: [PATCH] Add warning, save cycles. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36036 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 4eb7afd9ce..6416560bc4 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -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): -- 2.39.5