mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix lyx2lyx revertion for natbib.
We need to search for the \cite_engine line starting from the beginning of the document header.
This commit is contained in:
parent
5ac1f9400f
commit
3e8bf5477d
@ -445,7 +445,7 @@ def revert_cite_engine_type(document):
|
||||
del document.header[i]
|
||||
|
||||
# We are looking for the natbib citation engine
|
||||
i = find_token(document.header, "\\cite_engine natbib", i)
|
||||
i = find_token(document.header, "\\cite_engine natbib", 0)
|
||||
if i == -1:
|
||||
return
|
||||
document.header[i] = "\\cite_engine natbib_" + engine_type
|
||||
|
Loading…
Reference in New Issue
Block a user