mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Patch from Enrico fixing a problem with the lyxpak.py script when
"Add Bibliography to TOC" is used. Fixes #9044.
This commit is contained in:
parent
5a4363c0f5
commit
4540e6c2ef
@ -145,6 +145,8 @@ def gather_files(curfile, incfiles, lyx2lyx):
|
|||||||
match = re_options.match(lines[i])
|
match = re_options.match(lines[i])
|
||||||
if match:
|
if match:
|
||||||
file = match.group(3).strip('"')
|
file = match.group(3).strip('"')
|
||||||
|
if file.startswith("bibtotoc,"):
|
||||||
|
file = file[9:]
|
||||||
if not os.path.isabs(file):
|
if not os.path.isabs(file):
|
||||||
file = os.path.join(curdir, file + '.bst')
|
file = os.path.join(curdir, file + '.bst')
|
||||||
if os.path.exists(file):
|
if os.path.exists(file):
|
||||||
|
Loading…
Reference in New Issue
Block a user