mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
18a30566cb
commit
248bd19a72
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user