mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Fix revert_bibpackopts lyx2lyx routine
This commit is contained in:
parent
a53847964d
commit
d9f7642bd7
@ -1415,11 +1415,17 @@ def revert_bibpackopts(document):
|
||||
if engine not in ["natbib", "jurabib"]:
|
||||
return
|
||||
|
||||
biblio_options = ""
|
||||
i = find_token(document.header, "\\biblio_options", 0)
|
||||
if i != -1:
|
||||
biblio_options = get_value(document.header, "\\biblio_options", i)
|
||||
del document.header[i]
|
||||
if i == -1:
|
||||
# Nothing to do if we have no options
|
||||
return
|
||||
|
||||
biblio_options = get_value(document.header, "\\biblio_options", i)
|
||||
del document.header[i]
|
||||
|
||||
if not biblio_options:
|
||||
# Nothing to do for empty options
|
||||
return
|
||||
|
||||
i = find_token(document.header, "\\begin_local_layout", 0)
|
||||
if i == -1:
|
||||
|
Loading…
Reference in New Issue
Block a user